private function getChildIterator(PuliResource $resource)
    {
        $staticPrefix = rtrim($resource->getPath(), '/').'/';
        $regExp = '~^'.preg_quote($staticPrefix, '~').'[^/]+$~';

        return new RegexFilterIterator(
            $regExp,
            $staticPrefix,
            new ArrayIterator($this->resources),
            RegexFilterIterator::FILTER_KEY
        );
    }
private function getChildIterator(PuliResource $resource)
    {
        $staticPrefix = rtrim($resource->getPath(), '/').'/';
        $regExp = '~^'.preg_quote($staticPrefix, '~').'[^/]+$~';

        return new RegexFilterIterator(
            $regExp,
            $staticPrefix,
            new ArrayIterator($this->resources),
            RegexFilterIterator::FILTER_KEY
        );
    }
private function getChildIterator ( PuliResource $ resource ) { $ staticPrefix = rtrim ( $ resource -> getPath ( ) , '/' ) . '/' ; $ regExp = '~^' . preg_quote ( $ staticPrefix , '~' ) . '[^/]+$~' ; return new RegexFilterIterator ( $ regExp , $ staticPrefix , new ArrayIterator ( $ this -> resources ) , RegexFilterIterator :: FILTER_KEY ) ; }
Returns an iterator for the children of a resource.

@param PuliResource $resource The resource.

@return RegexFilterIterator The iterator.
Returns an iterator for the children of a resource .