Jackalope\ObjectManager::getCachedDescendants PHP 메소드

getCachedDescendants() 공개 메소드

It makes no difference whether or not the node itself is cached. Note that this method will also return deleted node objects so you can use them in refresh operations.
public getCachedDescendants ( string $absPath, string $class = 'Node' ) : ArrayIterato\ArrayIterator
$absPath string
$class string
리턴 ArrayIterato\ArrayIterator
    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));
    }