AppContext
in
Define a system app state context
Tags
Table of Contents
- Cached() : bool
- Get no cache context
- ContextType() : string
- Get a context type information
- Get() : mixed
- Get a superglobal
- GetUser() : User|null
- Get current user
- LogLine() : bool
- Log line write a line to the local system logfile
- Repository() : Git
- The repository instance
- Set() : mixed
- Set a super global
Methods
Cached()
Get no cache context
public
Cached() : bool
Return values
bool —ContextType()
Get a context type information
public
ContextType() : string
Return values
string —Get()
Get a superglobal
public
Get(string $sg, string|null $key[, $default = null ]) : mixed
Parameters
Return values
mixed —GetUser()
Get current user
public
GetUser() : User|null
Return values
User|null —LogLine()
Log line write a line to the local system logfile
public
LogLine(mixed $value[, string $level = FAA_LOG_LEVEL_INFO ]) : bool
Parameters
- $value : mixed
-
The log message or any kind of object
- $level : string = FAA_LOG_LEVEL_INFO
-
The log level
Return values
bool —Write success or false on error
Repository()
The repository instance
public
Repository() : Git
It should open a git instance on demand
Return values
Git —Set()
Set a super global
public
Set(string $sg, string $key, $data) : mixed