Public Member Functions | |
| __construct ($server=null) | |
| serve () | |
| run () | |
| __get ($key) | |
| isTestingEnvironment () | |
Static Public Member Functions | |
| static | getContext () |
Private Attributes | |
| $hookManager | |
| $moduleManager | |
| $router | |
| $cart | |
| $user | |
| $controller | |
| $ip | |
| $server | |
Static Private Attributes | |
| static | $instance |
Cms context Contains all website informations Will be passed to themes files and to modules
Definition at line 10 of file Context.php.
| __construct | ( | $server = null | ) |
Create context from $_SERVER environment and initialize all data
| array | $server | optional, contains $_SERVER configuration -> REMOTE_ADDR client's ip -> SCRIPT_NAME -> DOCUMENT_ROOT -> REQUEST_SCHEME 'http:https' -> REQUEST_URI -> HTTP_HOST |
Definition at line 90 of file Context.php.
| __get | ( | $key | ) |
|
static |
Definition at line 164 of file Context.php.
| isTestingEnvironment | ( | ) |
Check if executed from phpUnit
Definition at line 155 of file Context.php.
| run | ( | ) |
Execute controller
Definition at line 129 of file Context.php.
| serve | ( | ) |
Definition at line 101 of file Context.php.
|
private |
TODO
/core/tools/Cart.php Not defined yet Can be accessed read-only via $instance->cart
Definition at line 49 of file Context.php.
|
private |
/core/tools/AController.php Controller being called by user's request
Definition at line 64 of file Context.php.
|
private |
/core/tools/Hooks.php allow triggering hooks and registers module's endpoints Can be accessed read-only via $instance->hookManager
Definition at line 18 of file Context.php.
|
staticprivate |
Definition at line 23 of file Context.php.
|
private |
Contains the remote client's IP, or empty Can be accessed via ->ip
Definition at line 71 of file Context.php.
|
private |
/core/tools/ModuleManager.php load all active modules and contains informations about them Can be accessed read-only via $instance->moduleManager
Definition at line 31 of file Context.php.
|
private |
/core/tools/Router.php Contains information about directories and paths Allow user to generate links Can be accessed read-only via $instance->router
Definition at line 40 of file Context.php.
|
private |
contains $_SERVER or Unit test environment
Definition at line 77 of file Context.php.
|
private |
TODO
/core/tools/User.php Can be accessed read-only via $instance->user
Definition at line 57 of file Context.php.
1.8.8