class DepthRangeFilterIterator extends FilterIterator

DepthRangeFilterIterator limits the directory depth.

Methods

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

Constructor.

bool
accept()

Filters the iterator values.

Details

at line line 30
__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

at line line 43
bool accept()

Filters the iterator values.

Return Value

bool true if the value should be kept, false otherwise