1 | <?php |
||
17 | class Device extends Module |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | */ |
||
23 | public function __construct() |
||
27 | |||
28 | /** |
||
29 | * Implements hook "route.list" |
||
30 | * @param array $routes |
||
31 | */ |
||
32 | public function hookRouteList(array &$routes) |
||
41 | |||
42 | /** |
||
43 | * Implements hook "theme" |
||
44 | * @param \gplcart\core\Controller $controller |
||
45 | */ |
||
46 | public function hookTheme($controller) |
||
64 | |||
65 | /** |
||
66 | * Implements hook "library.list" |
||
67 | * @param array $libraries |
||
68 | */ |
||
69 | public function hookLibraryList(array &$libraries) |
||
88 | |||
89 | /** |
||
90 | * Implements hook "module.enable.after" |
||
91 | */ |
||
92 | public function hookModuleEnableAfter() |
||
96 | |||
97 | /** |
||
98 | * Implements hook "module.disable.after" |
||
99 | */ |
||
100 | public function hookModuleDisableAfter() |
||
104 | |||
105 | /** |
||
106 | * Implements hook "module.install.after" |
||
107 | */ |
||
108 | public function hookModuleInstallAfter() |
||
112 | |||
113 | /** |
||
114 | * Implements hook "module.uninstall.after" |
||
115 | */ |
||
116 | public function hookModuleUninstallAfter() |
||
120 | |||
121 | /** |
||
122 | * Returns a device type |
||
123 | * @return string |
||
124 | */ |
||
125 | protected function getDeviceType() |
||
153 | |||
154 | /** |
||
155 | * Returns instance on detector class |
||
156 | * @return \Mobile_Detect |
||
157 | * @throws \InvalidArgumentException |
||
158 | */ |
||
159 | protected function getMobileDetectInstance() |
||
169 | |||
170 | } |
||
171 |