DepthRangeFilterIterator
extends FilterIterator
in package
DepthRangeFilterIterator limits the directory depth.
Tags
Table of Contents
Properties
- $minDepth : int
Methods
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
Properties
$minDepth
private
int
$minDepth
= 0
Methods
__construct()
public
__construct(RecursiveIteratorIterator<string|int, RecursiveIterator<TKey, TValue>> $iterator[, int $minDepth = 0 ][, int $maxDepth = PHP_INT_MAX ]) : mixed
Parameters
- $iterator : RecursiveIteratorIterator<string|int, RecursiveIterator<TKey, TValue>>
-
The Iterator to filter
- $minDepth : int = 0
-
The min depth
- $maxDepth : int = PHP_INT_MAX
-
The max depth
accept()
Filters the iterator values.
public
accept() : bool