1 | <?php |
||
18 | class Main |
||
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) |
||
92 | |||
93 | /** |
||
94 | * Implements hook "module.install.before" |
||
95 | * @param null|string $result |
||
96 | */ |
||
97 | public function hookModuleInstallBefore(&$result) |
||
103 | |||
104 | /** |
||
105 | * Returns Command model instance |
||
106 | * @return \gplcart\modules\file_manager\models\Command |
||
107 | */ |
||
108 | protected function getModel() |
||
112 | |||
113 | /** |
||
114 | * Translation UI model class instance |
||
115 | * @return \gplcart\core\models\Translation |
||
116 | */ |
||
117 | protected function getTranslationModel() |
||
121 | |||
122 | } |
||
123 |