| 1 | <?php namespace Anomaly\Streams\Platform\Ui\ControlPanel\Component\Section; |
||
| 14 | class SectionCollection extends Collection |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Return the active section. |
||
| 19 | * |
||
| 20 | * @return null|SectionInterface |
||
| 21 | */ |
||
| 22 | public function active() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Return only root sections. |
||
| 36 | * |
||
| 37 | * @return SectionCollection |
||
| 38 | */ |
||
| 39 | public function root() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Return only sections with parent. |
||
| 53 | * |
||
| 54 | * @param $parent |
||
| 55 | * @return static |
||
| 56 | */ |
||
| 57 | public function children($parent) |
||
| 68 | } |
||
| 69 |