Public Member Functions | |
| install () | |
| uninstall () | |
| doAction ($event) | |
| doShortCode ($shortCode, $params) | |
| setContext ($context) | |
| setEntity ($entity) | |
| registerHook ($hookName) | |
| getName () | |
| getDescription () | |
| __get ($key) | |
Private Attributes | |
| $context | |
| $entity | |
Module superclass Contains all informations about the module
Definition at line 9 of file AModule.php.
| __get | ( | $key | ) |
|
abstract |
| \Tools\HookEvent | $event | called hook /core/tools/HookEvent.php Called on hook reception |
|
abstract |
| string | $shortCode | |
| array | ( key => value ) shortcode's parameters Called on shortcode reception |
| getDescription | ( | ) |
| getName | ( | ) |
Definition at line 86 of file AModule.php.
|
abstract |
Called on module install Should register shortcodes and Hooks
| registerHook | ( | $hookName | ) |
Register hook to be triggered Can only be triggered while module setup
Definition at line 78 of file AModule.php.
| setContext | ( | $context | ) |
| \Tools\Context | $context | /core/tools/Context.php set the application context Will work only one time |
Definition at line 56 of file AModule.php.
| setEntity | ( | $entity | ) |
| \Entity\Module | $module | /core/models/Module.php set the module database object Will work only one time |
Definition at line 68 of file AModule.php.
| uninstall | ( | ) |
|
private |
/core/tools/Context.php Website context Can be accessed read-only
Definition at line 17 of file AModule.php.
|
private |
Definition at line 22 of file AModule.php.
1.8.8