@@ 191-201 (lines=11) @@ | ||
188 | /** |
|
189 | * @return NodeMenuItem[] |
|
190 | */ |
|
191 | public function getParents() |
|
192 | { |
|
193 | $parent = $this->getParent(); |
|
194 | $parents = array(); |
|
195 | while ($parent !== null) { |
|
196 | $parents[] = $parent; |
|
197 | $parent = $parent->getParent(); |
|
198 | } |
|
199 | ||
200 | return array_reverse($parents); |
|
201 | } |
|
202 | ||
203 | /** |
|
204 | * @param bool $includeHiddenFromNav Include hiddenFromNav nodes |
@@ 251-261 (lines=11) @@ | ||
248 | /** |
|
249 | * @return Folder[]: |
|
250 | */ |
|
251 | public function getParents() |
|
252 | { |
|
253 | $parent = $this->getParent(); |
|
254 | $parents = array(); |
|
255 | while ($parent !== null) { |
|
256 | $parents[] = $parent; |
|
257 | $parent = $parent->getParent(); |
|
258 | } |
|
259 | ||
260 | return array_reverse($parents); |
|
261 | } |
|
262 | ||
263 | /** |
|
264 | * Get parent |
@@ 280-290 (lines=11) @@ | ||
277 | /** |
|
278 | * @return Node[] |
|
279 | */ |
|
280 | public function getParents() |
|
281 | { |
|
282 | $parent = $this->getParent(); |
|
283 | $parents = array(); |
|
284 | while ($parent !== null) { |
|
285 | $parents[] = $parent; |
|
286 | $parent = $parent->getParent(); |
|
287 | } |
|
288 | ||
289 | return array_reverse($parents); |
|
290 | } |
|
291 | ||
292 | /** |
|
293 | * @return bool |