Context
extends Component
in package
implements
IContext, ISingleton
Uses
TSingleton
FinalYes
Tags
Table of Contents
Interfaces
Properties
- $instance : ISingleton
- $action : string
- $application : string
- $cli_options : array<string|int, mixed>
- $controller : string
- $environment : string
- $hashCode : int
- $hashCounter : int
- $id_matched : string
- $sites : array<string|int, mixed>
- $skin : ISkin
- $skins : array<string|int, mixed>
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- extends() : bool
- getAction() : string|null
- getApplication() : string
- getCliOptions() : array<string|int, mixed>
- getController() : string|null
- getControllerName() : string|null
- getEnvironment() : string
- getIdMatched() : string|null
- Gets the id match in the URL path of the request
- getInstance() : ISingleton
- getReflection() : ReflectionClass
- getSkin() : ISkin
- getSkinById() : Skin
- isCli() : bool
- isCron() : bool
- isMobile() : bool
- isProduction() : bool
- init() : mixed
- {@inheritdoc}
- setAction() : mixed
- setApplication() : mixed
- setController() : mixed
- setIdMatched() : mixed
Properties
$instance
protected
static ISingleton
$instance
$action
private
string
$action
$application
private
string
$application
$cli_options
private
array<string|int, mixed>
$cli_options
= array()
$controller
private
string
$controller
$environment
private
string
$environment
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$id_matched
private
string
$id_matched
$sites
private
array<string|int, mixed>
$sites
= array()
$skin
private
ISkin
$skin
$skins
private
array<string|int, mixed>
$skins
= []
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct() : mixed
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetAction()
public
getAction() : string|null
Return values
string|nullgetApplication()
public
getApplication() : string
Return values
stringgetCliOptions()
public
getCliOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getController()
public
getController() : string|null
Return values
string|nullgetControllerName()
public
getControllerName() : string|null
Tags
Return values
string|nullgetEnvironment()
public
getEnvironment() : string
Tags
Return values
stringgetIdMatched()
Gets the id match in the URL path of the request
public
getIdMatched() : string|null
Return values
string|null —The id matched in the URL of the request, null if it was not matched
getInstance()
public
static getInstance() : ISingleton
Return values
ISingletongetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetSkin()
public
getSkin() : ISkin
Tags
Return values
ISkingetSkinById()
public
getSkinById(int $id) : Skin
Parameters
- $id : int
Return values
SkinisCli()
public
isCli() : bool
Return values
boolisCron()
public
isCron() : bool
Return values
boolisMobile()
public
isMobile() : bool
Tags
Return values
boolisProduction()
public
isProduction() : bool
Tags
Return values
boolinit()
{@inheritdoc}
protected
init() : mixed
Tags
setAction()
private
setAction(string $action) : mixed
Parameters
- $action : string
setApplication()
private
setApplication(string $application) : mixed
Parameters
- $application : string
setController()
private
setController(string $controller) : mixed
Parameters
- $controller : string
setIdMatched()
private
setIdMatched(string $id_matched) : mixed
Parameters
- $id_matched : string