Skip to content

Authentication

Aydan Coskun edited this page Nov 29, 2019 · 1 revision

Authentication

  • Class name: Authentication
  • Namespace:

Properties

$name

protected mixed $name = 'SessionID'
  • Visibility: protected

$idle

protected mixed $idle = 14400
  • Visibility: protected

$expire_session

protected mixed $expire_session
  • Visibility: protected

$type_id

protected mixed $type_id = 800
  • Visibility: protected

$object_id

protected mixed $object_id = NULL
  • Visibility: protected

$session_id

protected mixed $session_id = NULL
  • Visibility: protected

$ip_address

protected mixed $ip_address = NULL
  • Visibility: protected

$created_date

protected mixed $created_date = NULL
  • Visibility: protected

$updated_date

protected mixed $updated_date = NULL
  • Visibility: protected

$obj

protected mixed $obj = NULL
  • Visibility: protected

Methods

__construct

mixed Authentication::__construct()

Authentication constructor.

  • Visibility: public

getNameByTypeId

boolean|mixed Authentication::getNameByTypeId(integer $type_id)
  • Visibility: public

Arguments

  • $type_id integer

getName

boolean|mixed Authentication::getName(boolean $type_id)
  • Visibility: public

Arguments

  • $type_id boolean

isUser

boolean Authentication::isUser(boolean $type_id)
  • Visibility: public

Arguments

  • $type_id boolean

getTypeIDByName

boolean|integer Authentication::getTypeIDByName($type)
  • Visibility: public

Arguments

  • $type mixed

getType

integer Authentication::getType()
  • Visibility: public

setType

boolean Authentication::setType(integer $type_id)
  • Visibility: public

Arguments

  • $type_id integer

getIPAddress

null Authentication::getIPAddress()
  • Visibility: public

setIPAddress

boolean Authentication::setIPAddress(null $ip_address)
  • Visibility: public

Arguments

  • $ip_address null

getIdle

integer Authentication::getIdle()
  • Visibility: public

setIdle

boolean Authentication::setIdle($secs)
  • Visibility: public

Arguments

  • $secs mixed

getEnableExpireSession

mixed Authentication::getEnableExpireSession()
  • Visibility: public

setEnableExpireSession

boolean Authentication::setEnableExpireSession($bool)
  • Visibility: public

Arguments

  • $bool mixed

getCreatedDate

null Authentication::getCreatedDate()
  • Visibility: public

setCreatedDate

boolean Authentication::setCreatedDate(integer $epoch)
  • Visibility: public

Arguments

  • $epoch integer - EPOCH

getUpdatedDate

null Authentication::getUpdatedDate()
  • Visibility: public

setUpdatedDate

boolean Authentication::setUpdatedDate(integer $epoch)
  • Visibility: public

Arguments

  • $epoch integer - EPOCH

newSession

null Authentication::newSession(string $object_id, null $ip_address)

Duplicates existing session with a new SessionID. Useful for multiple logins with the same or different users.

  • Visibility: public

Arguments

  • $object_id string - UUID
  • $ip_address null

changeObject

boolean Authentication::changeObject(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getObjectByID

boolean Authentication::getObjectByID(string $id)
  • Visibility: public

Arguments

  • $id string - UUID

getObject

boolean|null Authentication::getObject()
  • Visibility: public

setObject

boolean Authentication::setObject($object)
  • Visibility: public

Arguments

  • $object mixed

getObjectID

null Authentication::getObjectID()
  • Visibility: public

setObjectID

boolean Authentication::setObjectID(string $id)
  • Visibility: public

Arguments

  • $id string - UUID

getSecureSessionID

mixed Authentication::getSecureSessionID()
  • Visibility: public

encryptSessionID

string Authentication::encryptSessionID(string $session_id)
  • Visibility: public

Arguments

  • $session_id string - UUID

getSessionID

null Authentication::getSessionID()
  • Visibility: public

setSessionID

boolean Authentication::setSessionID(string $session_id)
  • Visibility: public

Arguments

  • $session_id string - UUID

genSessionID

string Authentication::genSessionID()
  • Visibility: private

setCookie

boolean Authentication::setCookie(boolean $type_id)
  • Visibility: private

Arguments

  • $type_id boolean

destroyCookie

boolean Authentication::destroyCookie()
  • Visibility: private

UpdateLastLoginDate

boolean Authentication::UpdateLastLoginDate()
  • Visibility: private

Update

boolean Authentication::Update()
  • Visibility: private

Delete

boolean Authentication::Delete()
  • Visibility: private

Write

boolean Authentication::Write()
  • Visibility: private

Read

boolean Authentication::Read()
  • Visibility: private

getHTTPAuthenticationUsername

boolean Authentication::getHTTPAuthenticationUsername()
  • Visibility: public

HTTPAuthenticationHeader

mixed Authentication::HTTPAuthenticationHeader()
  • Visibility: public

loginHTTPAuthentication

boolean Authentication::loginHTTPAuthentication()
  • Visibility: public

Login

boolean Authentication::Login($user_name, $password, string $type)
  • Visibility: public

Arguments

  • $user_name mixed
  • $password mixed
  • $type string

Logout

boolean Authentication::Logout()
  • Visibility: public

Check

boolean Authentication::Check(string $session_id, string $type, boolean $touch_updated_date)
  • Visibility: public

Arguments

  • $session_id string - UUID
  • $type string
  • $touch_updated_date boolean

logoutCompany

boolean Authentication::logoutCompany(string $company_id)
  • Visibility: public

Arguments

  • $company_id string - UUID

logoutUser

boolean Authentication::logoutUser(string $object_id)
  • Visibility: public

Arguments

  • $object_id string - UUID

getCompanyObject

mixed Authentication::getCompanyObject($user_name, $type)
  • Visibility: public

Arguments

  • $user_name mixed
  • $type mixed

checkCompanyStatus

boolean Authentication::checkCompanyStatus($user_name)
  • Visibility: public

Arguments

  • $user_name mixed

checkUsername

boolean Authentication::checkUsername($user_name)
  • Visibility: public

Arguments

  • $user_name mixed

checkPassword

boolean Authentication::checkPassword($user_name, $password)
  • Visibility: public

Arguments

  • $user_name mixed
  • $password mixed

checkPhonePassword

boolean Authentication::checkPhonePassword(integer $phone_id, $password)
  • Visibility: public

Arguments

  • $phone_id integer
  • $password mixed

checkApplicantPassword

boolean Authentication::checkApplicantPassword($user_name, $password)
  • Visibility: public

Arguments

  • $user_name mixed
  • $password mixed

checkIButton

boolean Authentication::checkIButton(string $id)
  • Visibility: public

Arguments

  • $id string - UUID

checkBarcode

boolean Authentication::checkBarcode(string $object_id, $employee_number)
  • Visibility: public

Arguments

  • $object_id string - UUID
  • $employee_number mixed

checkFingerPrint

boolean Authentication::checkFingerPrint(string $id)
  • Visibility: public

Arguments

  • $id string - UUID

checkClientPC

boolean Authentication::checkClientPC($user_name)
  • Visibility: public

Arguments

  • $user_name mixed

Clone this wiki locally