| 1 | <?php |
||
| 15 | class Extractor |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Implements hook "route.list" |
||
| 20 | * @param array $routes |
||
| 21 | */ |
||
| 22 | public function hookRouteList(array &$routes) |
||
| 23 | { |
||
| 24 | $routes['admin/tool/extract'] = array( |
||
| 25 | 'access' => 'module_extractor_edit', |
||
| 26 | 'menu' => array('admin' => /* @text */'Extractor'), |
||
| 27 | 'handlers' => array( |
||
| 28 | 'controller' => array('gplcart\\modules\\extractor\\controllers\\Extractor', 'editExtractor') |
||
| 29 | ) |
||
| 30 | ); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Implements hook "user.role.permissions" |
||
| 35 | * @param array $permissions |
||
| 36 | */ |
||
| 37 | public function hookUserRolePermissions(array &$permissions) |
||
| 38 | { |
||
| 39 | $permissions['module_extractor_edit'] = /* @text */'Extractor: edit'; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Implements hook "job.handlers" |
||
| 44 | * @param array $handlers |
||
| 45 | */ |
||
| 46 | public function hookJobHandlers(array &$handlers) |
||
| 54 | |||
| 55 | } |
||
| 56 |