1 | <?php |
||
15 | class Main |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * Implements hook "route.list" |
||
20 | * @param mixed $routes |
||
21 | */ |
||
22 | public function hookRouteList(&$routes) |
||
39 | |||
40 | /** |
||
41 | * Implements hook "hook.cron" |
||
42 | */ |
||
43 | public function hookCronRunAfter() |
||
44 | { |
||
45 | gplcart_file_empty(gplcart_file_private_module('import'), array('csv'), 24 * 60 * 60); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Implements hook "user.role.permissions" |
||
50 | * @param array $permissions |
||
51 | */ |
||
52 | public function hookUserRolePermissions(array &$permissions) |
||
56 | |||
57 | /** |
||
58 | * Implements hook "job.handlers" |
||
59 | * @param mixed $handlers |
||
60 | */ |
||
61 | public function hookJobHandlers(array &$handlers) |
||
69 | |||
70 | } |
||
71 |