ContextManager
in package
Table of Contents
- Clear() : void
- Clear stage
- Get() : array<string|int, mixed>|mixed|null
- Getter for context superglobals
- GetSuperContext() : mixed|null
- Navigate the coroutine tree and search for the requested key
- SessionId() : string|null
- Get session id from storage
- Set() : void
- Setter for context superglobals
- SetSuperContext() : void
- Set is used to save a new value under the context
Methods
Clear()
Clear stage
public
static Clear(string $sg) : void
Parameters
- $sg : string
Return values
void —Get()
Getter for context superglobals
public
static Get(string $sg, string|null $key[, $default = null ]) : array<string|int, mixed>|mixed|null
Parameters
Return values
array<string|int, mixed>|mixed|null —GetSuperContext()
Navigate the coroutine tree and search for the requested key
public
static GetSuperContext(string $key[, $default = null ]) : mixed|null
Parameters
Return values
mixed|null —SessionId()
Get session id from storage
public
static SessionId() : string|null
Return values
string|null —Set()
Setter for context superglobals
public
static Set(string $sg, string $key, $data) : void
Parameters
Return values
void —SetSuperContext()
Set is used to save a new value under the context
public
static SetSuperContext(string $key, $value) : void
Short method of setting a new context value, same as above code...