Context
FinalYes
Table of Contents
Methods
- getClass() : mixed
- getDefault() : static
- getNow() : DateTime|null
- At which time
- getSiteId() : DateTime|null
- On which site
- getUserId() : int
- Who
- isA() : mixed
- isImmutable() : mixed
- setImmutable() : mixed
- Normally you SHOULD NOT be able to modify default context, so immutable flag is at our rescue
- setNow() : mixed
- setUserId() : mixed
- spawn() : Context
Methods
getClass()
public
static getClass() : mixed
getDefault()
public
static getDefault() : static
Return values
static —mixed
getNow()
At which time
public
getNow() : DateTime|null
Return values
DateTime|nullgetSiteId()
On which site
public
getSiteId() : DateTime|null
Return values
DateTime|nullgetUserId()
Who
public
getUserId() : int
Return values
intisA()
public
static isA(mixed $object) : mixed
Parameters
- $object : mixed
isImmutable()
public
isImmutable() : mixed
setImmutable()
Normally you SHOULD NOT be able to modify default context, so immutable flag is at our rescue
public
setImmutable() : mixed
setNow()
public
setNow(DateTime $now) : mixed
Parameters
- $now : DateTime
setUserId()
public
setUserId(mixed $userId) : mixed
Parameters
- $userId : mixed
spawn()
public
spawn() : Context