| @@ 110-123 (lines=14) @@ | ||
| 107 | /** |
|
| 108 | * {@inheritdoc} |
|
| 109 | */ |
|
| 110 | public function listChildren() |
|
| 111 | { |
|
| 112 | $children = new ArrayResourceCollection(); |
|
| 113 | ||
| 114 | if (!$this->getRepository()) { |
|
| 115 | return $children; |
|
| 116 | } |
|
| 117 | ||
| 118 | foreach ($this->getRepository()->listChildren($this->getRepositoryPath()) as $child) { |
|
| 119 | $children[$child->getName()] = $child; |
|
| 120 | } |
|
| 121 | ||
| 122 | return $children; |
|
| 123 | } |
|
| 124 | ||
| 125 | /** |
|
| 126 | * {@inheritdoc} |
|
| @@ 103-116 (lines=14) @@ | ||
| 100 | /** |
|
| 101 | * {@inheritdoc} |
|
| 102 | */ |
|
| 103 | public function listChildren() |
|
| 104 | { |
|
| 105 | $children = new ArrayResourceCollection(); |
|
| 106 | ||
| 107 | if (!$this->getRepository()) { |
|
| 108 | return $children; |
|
| 109 | } |
|
| 110 | ||
| 111 | foreach ($this->getRepository()->listChildren($this->getTargetPath()) as $child) { |
|
| 112 | $children[$child->getName()] = $child; |
|
| 113 | } |
|
| 114 | ||
| 115 | return $children; |
|
| 116 | } |
|
| 117 | ||
| 118 | protected function preSerialize(array &$data) |
|
| 119 | { |
|