1 | <?php |
||
18 | class Module |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Module class instance |
||
23 | * @var \gplcart\core\Module $module |
||
24 | */ |
||
25 | protected $module; |
||
26 | |||
27 | /** |
||
28 | * Library class instance |
||
29 | * @var \gplcart\core\Library $library |
||
30 | */ |
||
31 | protected $library; |
||
32 | |||
33 | /** |
||
34 | * @param CoreModule $module |
||
35 | * @param Library $library |
||
36 | */ |
||
37 | public function __construct(CoreModule $module, Library $library) |
||
42 | |||
43 | /** |
||
44 | * Implements hook "library.list" |
||
45 | * @param array $libraries |
||
46 | */ |
||
47 | public function hookLibraryList(array &$libraries) |
||
70 | |||
71 | /** |
||
72 | * Implements hook "route.list" |
||
73 | * @param array $routes |
||
74 | */ |
||
75 | public function hookRouteList(array &$routes) |
||
84 | |||
85 | /** |
||
86 | * Implements hook "construct.controller.backend" |
||
87 | * @param \gplcart\core\controllers\backend\Controller $controller |
||
88 | */ |
||
89 | public function hookConstructControllerBackend($controller) |
||
93 | |||
94 | /** |
||
95 | * Implements hook "module.enable.after" |
||
96 | */ |
||
97 | public function hookModuleEnableAfter() |
||
101 | |||
102 | /** |
||
103 | * Implements hook "module.disable.after" |
||
104 | */ |
||
105 | public function hookModuleDisableAfter() |
||
109 | |||
110 | /** |
||
111 | * Implements hook "module.install.after" |
||
112 | */ |
||
113 | public function hookModuleInstallAfter() |
||
117 | |||
118 | /** |
||
119 | * Implements hook "module.uninstall.after" |
||
120 | */ |
||
121 | public function hookModuleUninstallAfter() |
||
125 | |||
126 | /** |
||
127 | * Add Bootstrap Select library and additional assets |
||
128 | * @param \gplcart\core\Controller $controller |
||
129 | */ |
||
130 | public function addLibrary($controller) |
||
138 | |||
139 | } |
||
140 |