1 | <?php |
||
18 | class Module |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Config class instance |
||
23 | * @var \gplcart\core\Config $config |
||
24 | */ |
||
25 | protected $config; |
||
26 | |||
27 | /** |
||
28 | * @param Config $config |
||
29 | */ |
||
30 | public function __construct(Config $config) |
||
34 | |||
35 | /** |
||
36 | * Implements hook "route.list" |
||
37 | * @param array $routes |
||
38 | */ |
||
39 | public function hookRouteList(array &$routes) |
||
56 | |||
57 | /** |
||
58 | * Implements hook "validator.handlers" |
||
59 | * @param array $handlers |
||
60 | */ |
||
61 | public function hookValidatorHandlers(array &$handlers) |
||
78 | |||
79 | /** |
||
80 | * Implements hook "user.role.permissions" |
||
81 | * @param array $permissions |
||
82 | */ |
||
83 | public function hookUserRolePermissions(array &$permissions) |
||
91 | |||
92 | /** |
||
93 | * Implements hook "module.install.before" |
||
94 | * @param null|string $result |
||
95 | */ |
||
96 | public function hookModuleInstallBefore(&$result) |
||
102 | |||
103 | /** |
||
104 | * Implements hook "module.uninstall.after" |
||
105 | */ |
||
106 | public function hookModuleUninstallAfter() |
||
114 | |||
115 | /** |
||
116 | * Returns Command model instance |
||
117 | * @return \gplcart\modules\file_manager\models\Command |
||
118 | */ |
||
119 | protected function getModel() |
||
123 | |||
124 | /** |
||
125 | * Language model class instance |
||
126 | * @return \gplcart\core\modules\Language |
||
127 | */ |
||
128 | protected function getLanguage() |
||
132 | |||
133 | } |
||
134 |