1 | <?php |
||
18 | class Main |
||
19 | { |
||
20 | /** |
||
21 | * Module class instance |
||
22 | * @var Module |
||
23 | */ |
||
24 | protected $module; |
||
25 | |||
26 | /** |
||
27 | * Main constructor. |
||
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) |
||
48 | |||
49 | /** |
||
50 | * Implements hook "user.role.permissions" |
||
51 | * @param array $permissions |
||
52 | */ |
||
53 | public function hookUserRolePermissions(array &$permissions) |
||
57 | |||
58 | /** |
||
59 | * Implements hook "filter" |
||
60 | * @param string $text |
||
61 | * @param array $filter |
||
62 | * @param null|string $filtered |
||
63 | */ |
||
64 | public function hookFilter($text, $filter, &$filtered) |
||
70 | |||
71 | /** |
||
72 | * Implements hook "filter.handlers" |
||
73 | * @param array $filters |
||
74 | */ |
||
75 | public function hookFilterHandlers(array &$filters) |
||
84 | |||
85 | /** |
||
86 | * Filter a string |
||
87 | * @param string $text |
||
88 | * @param null|array $allowed_tags |
||
89 | * @param null|array $allowed_protocols |
||
90 | * @return string |
||
91 | */ |
||
92 | public function filter($text, $allowed_tags = null, $allowed_protocols = null) |
||
109 | |||
110 | /** |
||
111 | * Returns Filter library class instance |
||
112 | * @return helpers\Filter |
||
113 | */ |
||
114 | public function getFilter() |
||
120 | } |
||
121 |