PHP Class Puli\Repository\Resource\Iterator\RecursiveResourceIteratorIterator
Use this iterator to iterate recursively over a recursive resource iterator:
php
$iterator = new RecursiveResourceIteratorIterator(
new ResourceCollectionIterator(
$collection,
ResourceCollectionIterator::KEY_AS_PATH | ResourceCollectionIterator::CURRENT_AS_RESOURCE
),
RecursiveResourceIteratorIterator::SELF_FIRST
);
foreach ($iterator as $path => $resource) {
...
}
The configuration of this iterator works identically to its parent class
{@link RecursiveIteratorIterator}.
Afficher le fichier
Open project: puli/repository
Méthodes publiques
Method Details
__construct()
public méthode
public __construct ( RecursiveResourceIterator $iterator, integer $mode = self::LEAVES_ONLY, integer $flags ) |
$iterator |
RecursiveResourceIterator |
The inner iterator. |
$mode |
integer |
The iteration mode. |
$flags |
integer |
The iteration flags. |
getCurrentResource()
public méthode