1 | <?php |
||
22 | class NavigationTreeHelper { |
||
23 | |||
24 | /** |
||
25 | * Actives the nodes. |
||
26 | * |
||
27 | * @param Request $request The request. |
||
28 | * @param array $nodes The nodes. |
||
29 | * @param int $level The node level. |
||
30 | * @return bool Returns true in case of success, false othewise. |
||
31 | */ |
||
32 | protected static function activeNodes(Request $request, array $nodes = [], $level = 0) { |
||
59 | |||
60 | /** |
||
61 | * Active the tree. |
||
62 | * |
||
63 | * @param NavigationTree $tree The tree. |
||
64 | * @param Request $request The request. |
||
65 | * @return void |
||
66 | */ |
||
67 | public static function activeTree(NavigationTree $tree, Request $request) { |
||
70 | |||
71 | /** |
||
72 | * Get the breadcrumbs. |
||
73 | * |
||
74 | * @param AbstractNavigationNode $node The tree. |
||
75 | * @return AsbtractNavigationNode[] Returns the breadcrumbs. |
||
76 | */ |
||
77 | public static function getBreadcrumbs(AbstractNavigationNode $node) { |
||
94 | |||
95 | /** |
||
96 | * Determines if a node match an URL. |
||
97 | * |
||
98 | * @param AbstractNavigationNode $node The node. |
||
99 | * @param Request $request The request. |
||
100 | * @return bool Returns true in case of success, false otherwise. |
||
101 | */ |
||
102 | protected static function nodeMatch(AbstractNavigationNode $node, Request $request) { |
||
123 | } |
||
124 |