1 | <?php |
||
14 | abstract class menu_block extends block |
||
15 | { |
||
16 | /** @var \phpbb\cache\driver\driver_interface */ |
||
17 | protected $cache; |
||
18 | |||
19 | /** @var \phpbb\config\config */ |
||
20 | protected $config; |
||
21 | |||
22 | /** @var \phpbb\language\language */ |
||
23 | protected $translator; |
||
24 | |||
25 | /** @var \blitze\sitemaker\model\mapper_factory */ |
||
26 | protected $mapper_factory; |
||
27 | |||
28 | /** @var \blitze\sitemaker\services\menus\display */ |
||
29 | protected $tree; |
||
30 | |||
31 | /** @var string */ |
||
32 | protected $php_ext; |
||
33 | |||
34 | /** |
||
35 | * Constructor |
||
36 | * |
||
37 | * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
||
38 | * @param \phpbb\config\config $config Config object |
||
39 | * @param \phpbb\language\language $translator Language object |
||
40 | * @param \blitze\sitemaker\model\mapper_factory $mapper_factory Mapper factory object |
||
41 | * @param \blitze\sitemaker\services\menus\display $tree Menu tree display object |
||
42 | * @param string $php_ext php file extension |
||
43 | */ |
||
44 | public function __construct(\phpbb\cache\driver\driver_interface $cache, \phpbb\config\config $config, \phpbb\language\language $translator, \blitze\sitemaker\model\mapper_factory $mapper_factory, \blitze\sitemaker\services\menus\display $tree, $php_ext) |
||
53 | |||
54 | /** |
||
55 | * @param int $menu_id |
||
56 | * @return array |
||
57 | */ |
||
58 | protected function get_menu($menu_id) |
||
69 | |||
70 | /** |
||
71 | * @return array |
||
72 | */ |
||
73 | protected function get_all_menus() |
||
91 | |||
92 | /** |
||
93 | * @param int $menu_id |
||
94 | * @param bool $editing |
||
95 | * @return string |
||
96 | */ |
||
97 | protected function get_message($menu_id, $editing) |
||
107 | |||
108 | /** |
||
109 | * @param array $row |
||
110 | */ |
||
111 | protected function set_path_info(array &$row) |
||
119 | |||
120 | /** |
||
121 | * @param array $row |
||
122 | */ |
||
123 | protected function pre_parse(array &$row) |
||
129 | |||
130 | /** |
||
131 | * @param array $row |
||
132 | * @return bool |
||
133 | */ |
||
134 | protected function is_navigable(array $row) |
||
138 | |||
139 | /** |
||
140 | * @param array $row |
||
141 | * @return bool |
||
142 | */ |
||
143 | protected function is_local(array $row) |
||
147 | |||
148 | /** |
||
149 | * @param string $url_path |
||
150 | * @return bool |
||
151 | */ |
||
152 | protected function is_not_php_file($url_path) |
||
157 | |||
158 | /** |
||
159 | * @return array |
||
160 | */ |
||
161 | protected function get_menu_options() |
||
173 | } |
||
174 |