DepthRangeFilterIterator
extends FilterIterator
in package
DepthRangeFilterIterator limits the directory depth.
Tags
Table of Contents
- $minDepth : mixed
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
Properties
$minDepth
private
mixed
$minDepth
= 0
Methods
__construct()
public
__construct(RecursiveIteratorIterator $iterator, int $minDepth[, int $maxDepth = PHP_INT_MAX ]) : mixed
Parameters
- $iterator : RecursiveIteratorIterator
-
The Iterator to filter
- $minDepth : int
-
The min depth
- $maxDepth : int = PHP_INT_MAX
-
The max depth
Return values
mixed —accept()
Filters the iterator values.
public
accept() : bool
Return values
bool —true if the value should be kept, false otherwise