PHP 클래스 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}.
파일 보기
프로젝트 열기: puli/repository
공개 메소드들
메소드 상세
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()
공개 메소드