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) |
||
50 | |||
51 | /** |
||
52 | * Implements hook "library.list" |
||
53 | * @param array $libraries |
||
54 | */ |
||
55 | public function hookLibraryList(array &$libraries) |
||
74 | |||
75 | /** |
||
76 | * Implements hook "module.enable.after" |
||
77 | */ |
||
78 | public function hookModuleEnableAfter() |
||
82 | |||
83 | /** |
||
84 | * Implements hook "module.disable.after" |
||
85 | */ |
||
86 | public function hookModuleDisableAfter() |
||
90 | |||
91 | /** |
||
92 | * Implements hook "module.install.after" |
||
93 | */ |
||
94 | public function hookModuleInstallAfter() |
||
98 | |||
99 | /** |
||
100 | * Implements hook "module.uninstall.after" |
||
101 | */ |
||
102 | public function hookModuleUninstallAfter() |
||
106 | |||
107 | /** |
||
108 | * Switch the current theme |
||
109 | * @param \gplcart\core\Controller $controller |
||
110 | */ |
||
111 | protected function switchTheme($controller) |
||
125 | |||
126 | /** |
||
127 | * Returns a device type |
||
128 | * @return string |
||
129 | */ |
||
130 | protected function getDeviceType() |
||
158 | |||
159 | /** |
||
160 | * Returns instance on detector class |
||
161 | * @return \Mobile_Detect |
||
162 | * @throws \InvalidArgumentException |
||
163 | */ |
||
164 | protected function getMobileDetectInstance() |
||
174 | |||
175 | } |
||
176 |