public function getCachedDescendants($absPath, $class = 'Node') { $descendants = array(); foreach ($this->objectsByPath[$class] as $path => $node) { if (0 === strpos($path, "{$absPath}/")) { $descendants[$path] = $node; } } return new ArrayIterator(array_values($descendants)); }