1 | <?php |
||
18 | class Module |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Library class instance |
||
23 | * @var \gplcart\core\Library $library |
||
24 | */ |
||
25 | protected $library; |
||
26 | |||
27 | /** |
||
28 | * @param Library $library |
||
29 | */ |
||
30 | public function __construct(Library $library) |
||
34 | |||
35 | /** |
||
36 | * Implements hook "library.list" |
||
37 | * @param array $libraries |
||
38 | */ |
||
39 | public function hookLibraryList(array &$libraries) |
||
59 | |||
60 | /** |
||
61 | * Implements hook "module.install.before" |
||
62 | * @param null|string |
||
63 | */ |
||
64 | public function hookModuleInstallBefore(&$result) |
||
68 | |||
69 | /** |
||
70 | * Implements hook "module.enable.after" |
||
71 | */ |
||
72 | public function hookModuleEnableAfter() |
||
76 | |||
77 | /** |
||
78 | * Implements hook "module.disable.after" |
||
79 | */ |
||
80 | public function hookModuleDisableAfter() |
||
84 | |||
85 | /** |
||
86 | * Implements hook "module.install.after" |
||
87 | */ |
||
88 | public function hookModuleInstallAfter() |
||
92 | |||
93 | /** |
||
94 | * Implements hook "module.uninstall.after" |
||
95 | */ |
||
96 | public function hookModuleUninstallAfter() |
||
100 | |||
101 | /** |
||
102 | * Check Jquery version |
||
103 | * @param mixed $result |
||
104 | */ |
||
105 | protected function checkJqueryVersion(&$result) |
||
112 | |||
113 | /** |
||
114 | * Translation UI model class instance |
||
115 | * @return \gplcart\core\models\Translation |
||
116 | */ |
||
117 | protected function getTranslationModel() |
||
121 | |||
122 | } |
||
123 |