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}.
Datei anzeigen
Open project: puli/repository
Public Methods
Method Details
__construct()
public method
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 method