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}.
부터: 1.0
저자: Bernhard Schussek ([email protected])
상속: extends RecursiveIteratorIterato\RecursiveIteratorIterator, implements Puli\Repository\Api\ResourceIterator
파일 보기 프로젝트 열기: puli/repository

공개 메소드들

메소드 설명
__construct ( RecursiveResourceIterator $iterator, integer $mode = self::LEAVES_ONLY, integer $flags ) Creates a new iterator.
getCurrentResource ( )

메소드 상세

__construct() 공개 메소드

Creates a new iterator.
또한 보기: RecursiveIteratorIterator::__construct
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 getCurrentResource ( )