1 | <?php |
||
12 | class navigation |
||
13 | { |
||
14 | /** @var \phpbb\cache\driver\driver_interface */ |
||
15 | protected $cache; |
||
16 | |||
17 | /** @var \blitze\sitemaker\model\mapper_factory */ |
||
18 | protected $mapper_factory; |
||
19 | |||
20 | /** @var \blitze\sitemaker\services\menus\display */ |
||
21 | protected $tree; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $php_ext; |
||
25 | |||
26 | /** |
||
27 | * Constructor |
||
28 | * |
||
29 | * @param \phpbb\cache\driver\driver_interface $cache Cache driver interface |
||
30 | * @param \blitze\sitemaker\model\mapper_factory $mapper_factory Mapper factory object |
||
31 | * @param \blitze\sitemaker\services\menus\display $tree Menu tree display object |
||
32 | * @param string $php_ext php file extension |
||
33 | */ |
||
34 | public function __construct(\phpbb\cache\driver\driver_interface $cache, \blitze\sitemaker\model\mapper_factory $mapper_factory, \blitze\sitemaker\services\menus\display $tree, $php_ext) |
||
41 | |||
42 | /** |
||
43 | * @param \phpbb\template\twig\twig $template |
||
44 | * @param int $menu_id |
||
45 | * @param bool $is_navigation |
||
46 | * @param array $settings |
||
47 | * @return bool |
||
48 | */ |
||
49 | public function build_menu($template, $menu_id, $is_navigation = false, array $settings = array()) |
||
70 | |||
71 | /** |
||
72 | * @return string[] |
||
73 | */ |
||
74 | public function get_menu_options() |
||
86 | |||
87 | /** |
||
88 | * @param int $menu_id |
||
89 | * @return array |
||
90 | */ |
||
91 | protected function get_menu($menu_id) |
||
102 | |||
103 | /** |
||
104 | * @return array |
||
105 | */ |
||
106 | protected function get_all_menus() |
||
129 | |||
130 | /** |
||
131 | * @param array $row |
||
132 | */ |
||
133 | protected function set_path_info(array &$row) |
||
141 | |||
142 | /** |
||
143 | * @param array $row |
||
144 | */ |
||
145 | protected function pre_parse(array &$row) |
||
151 | |||
152 | /** |
||
153 | * @param array $row |
||
154 | * @return bool |
||
155 | */ |
||
156 | protected function is_navigable(array $row) |
||
160 | |||
161 | /** |
||
162 | * @param array $row |
||
163 | * @return bool |
||
164 | */ |
||
165 | protected function is_local(array $row) |
||
169 | |||
170 | /** |
||
171 | * @param string $url_path |
||
172 | * @return bool |
||
173 | */ |
||
174 | protected function is_not_php_file($url_path) |
||
179 | |||
180 | /** |
||
181 | * @param array |
||
182 | * @return string |
||
183 | */ |
||
184 | protected function get_matchable_url(array $row) |
||
192 | } |
||
193 |