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 | 19 | 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 array $settings |
||
46 | * @return bool |
||
47 | */ |
||
48 | 17 | public function build_menu($template, $menu_id, array $settings = array()) |
|
62 | |||
63 | /** |
||
64 | * @return string[] |
||
65 | */ |
||
66 | 2 | public function get_menu_options() |
|
78 | |||
79 | /** |
||
80 | * @param int $menu_id |
||
81 | * @return array |
||
82 | */ |
||
83 | 17 | protected function get_menu($menu_id) |
|
94 | |||
95 | /** |
||
96 | * @return array |
||
97 | */ |
||
98 | 17 | protected function get_all_menus() |
|
121 | |||
122 | /** |
||
123 | * @param array $row |
||
124 | */ |
||
125 | 17 | protected function set_path_info(array &$row) |
|
133 | |||
134 | /** |
||
135 | * @param array $row |
||
136 | */ |
||
137 | 17 | protected function pre_parse(array &$row) |
|
143 | |||
144 | /** |
||
145 | * @param array $row |
||
146 | * @return bool |
||
147 | */ |
||
148 | 17 | protected function is_navigable(array $row) |
|
152 | |||
153 | /** |
||
154 | * @param array $row |
||
155 | * @return bool |
||
156 | */ |
||
157 | 17 | protected function is_local(array $row) |
|
161 | |||
162 | /** |
||
163 | * @param string $url_path |
||
164 | * @return bool |
||
165 | */ |
||
166 | 17 | protected function is_not_php_file($url_path) |
|
171 | |||
172 | /** |
||
173 | * @param array |
||
174 | * @return string |
||
175 | */ |
||
176 | 17 | protected function get_matchable_url(array $row) |
|
184 | } |
||
185 |