DepthRangeFilterIterator

class DepthRangeFilterIterator extends FilterIterator

DepthRangeFilterIterator limits the directory depth.

Methods

rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

from FilterIterator
__construct(RecursiveIteratorIterator $iterator, int $minDepth, int $maxDepth = PHP_INT_MAX)

Constructor.

bool accept()

Filters the iterator values.

Details

rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

See also

FilterIterator::rewind()

__construct(RecursiveIteratorIterator $iterator, int $minDepth, int $maxDepth = PHP_INT_MAX)

Constructor.

Parameters

RecursiveIteratorIterator $iterator The Iterator to filter
int $minDepth The min depth
int $maxDepth The max depth

bool accept()

Filters the iterator values.

Return Value

bool true if the value should be kept, false otherwise
doc_Symfony
2016-10-28 06:14:06
Comments
Leave a Comment

Please login to continue.