Siteuser_Controller
in package
Siteuser_Controller
Tags
Table of Contents
Properties
- $_currentSiteuser : Siteuser_Model|null|false
- Current Siteuser
Methods
- destroyOldSiteuserSessions() : mixed
- Destroy Old User Sessions
- getCompaniesByPhone() : array<string|int, mixed>
- Get Siteuser_Company by phone
- getCurrent() : Siteuser_Model|null
- Get Current Siteuser
- getDocumentId() : int
- Get uniq document ID
- getDocumentType() : int|null
- Get document type
- getPeopleByPhone() : array<string|int, mixed>
- Get Siteuser_Person by phone
- logToSiteuserSession() : mixed
- Log access to the `siteuser_sessions` table
- onAfterShowContentPopover() : mixed
- Show popover
- setCurrent() : mixed
- Set Current Siteuser
- unsetCurrent() : mixed
- Unset Current Siteuser
Properties
$_currentSiteuser
Current Siteuser
protected
static Siteuser_Model|null|false
$_currentSiteuser
= \FALSE
Methods
destroyOldSiteuserSessions()
Destroy Old User Sessions
public
static destroyOldSiteuserSessions() : mixed
getCompaniesByPhone()
Get Siteuser_Company by phone
public
static getCompaniesByPhone(string $phone[, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
- $phone : string
- $bCache : bool = TRUE
Return values
array<string|int, mixed>getCurrent()
Get Current Siteuser
public
static getCurrent([bool $bCheckSite = FALSE ]) : Siteuser_Model|null
Parameters
- $bCheckSite : bool = FALSE
-
default FALSE
Return values
Siteuser_Model|nullgetDocumentId()
Get uniq document ID
public
static getDocumentId(int $document_id, int $type) : int
Parameters
- $document_id : int
-
document ID
- $type : int
-
document type
Return values
intgetDocumentType()
Get document type
public
static getDocumentType( $document_id) : int|null
Parameters
Return values
int|nullgetPeopleByPhone()
Get Siteuser_Person by phone
public
static getPeopleByPhone(string $phone[, bool $bCache = TRUE ]) : array<string|int, mixed>
Parameters
- $phone : string
- $bCache : bool = TRUE
Return values
array<string|int, mixed>logToSiteuserSession()
Log access to the `siteuser_sessions` table
public
static logToSiteuserSession() : mixed
onAfterShowContentPopover()
Show popover
public
static onAfterShowContentPopover(object $object, array<string|int, mixed> $args, array<string|int, mixed> $options) : mixed
Parameters
- $object : object
- $args : array<string|int, mixed>
- $options : array<string|int, mixed>
setCurrent()
Set Current Siteuser
public
static setCurrent(Siteuser_Model $oSiteuser[, int $expires = 2678400 ][, mixed $attachSessionToIp = NULL ]) : mixed
Parameters
- $oSiteuser : Siteuser_Model
- $expires : int = 2678400
-
default 2678400
- $attachSessionToIp : mixed = NULL
-
default NULL
unsetCurrent()
Unset Current Siteuser
public
static unsetCurrent() : mixed