1 | <?php |
||
18 | class Main |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Module class instance |
||
23 | * @var \gplcart\core\Module $model |
||
24 | */ |
||
25 | protected $module; |
||
26 | |||
27 | /** |
||
28 | * @param Module $module |
||
29 | */ |
||
30 | public function __construct(Module $module) |
||
34 | |||
35 | /** |
||
36 | * Implements hook "route.list" |
||
37 | * @param array $routes |
||
38 | */ |
||
39 | public function hookRouteList(array &$routes) |
||
58 | |||
59 | /** |
||
60 | * Implements hook "user.role.permissions" |
||
61 | * @param array $permissions |
||
62 | */ |
||
63 | public function hookUserRolePermissions(array &$permissions) |
||
67 | |||
68 | /** |
||
69 | * Implements hook "dashboard.handlers" |
||
70 | * @param array $handlers |
||
71 | */ |
||
72 | public function hookDashboardHandlers(array &$handlers) |
||
105 | |||
106 | /** |
||
107 | * Implements hook "construct.controller.backend" |
||
108 | * @param \gplcart\core\controllers\backend\Controller $controller |
||
109 | */ |
||
110 | public function hookConstructControllerBackend($controller) |
||
118 | |||
119 | /** |
||
120 | * Returns an array of GA handlers |
||
121 | * @return array |
||
122 | */ |
||
123 | public function getHandlers() |
||
127 | |||
128 | /** |
||
129 | * Returns the report model instance |
||
130 | * @return \gplcart\modules\ga_report\models\Report |
||
131 | */ |
||
132 | protected function getModel() |
||
138 | |||
139 | } |
||
140 |