| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Pluginkendox extends Plugin { |
||
| 9 | /** |
||
| 10 | * Function initializes the Plugin and registers all hooks. |
||
| 11 | */ |
||
| 12 | public function init() { |
||
| 14 | } |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Function is executed when a hook is triggered by the PluginManager. |
||
| 18 | * |
||
| 19 | * @param string $eventID the id of the triggered hook |
||
| 20 | * @param mixed $data object(s) related to the hook |
||
| 21 | */ |
||
| 22 | public function execute($eventID, &$data) { |
||
| 23 | switch ($eventID) { |
||
| 24 | case 'server.core.settings.init.before': |
||
| 25 | $this->injectPluginSettings($data); |
||
| 26 | break; |
||
| 27 | } |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Called when the core Settings class is initialized and ready to accept sysadmin default |
||
| 32 | * settings. Registers the sysadmin defaults for the FILES plugin. |
||
| 33 | * |
||
| 34 | * @param array $data Reference to the data of the triggered hook |
||
| 35 | */ |
||
| 36 | public function injectPluginSettings(&$data) { |
||
| 49 | ], |
||
| 50 | ], |
||
| 56 |