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.

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

No description

bool
accept()

Filters the iterator values.

Details

in FilterIterator at line 32
rewind()

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

at line 28
__construct(RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = PHP_INT_MAX)

Parameters

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

at line 41
bool accept()

Filters the iterator values.

Return Value

bool true if the value should be kept, false otherwise