TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
DepthRangeFilterIterator Class Reference
Inheritance diagram for DepthRangeFilterIterator:
FilterIterator

Public Member Functions

 __construct (\RecursiveIteratorIterator $iterator, $minDepth=0, $maxDepth=PHP_INT_MAX)
 
 accept ()
 
- Public Member Functions inherited from FilterIterator
 rewind ()
 

Private Attributes

 $minDepth = 0
 

Detailed Description

DepthRangeFilterIterator limits the directory depth.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 19 of file DepthRangeFilterIterator.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
\RecursiveIteratorIterator$iteratorThe Iterator to filter
int$minDepthThe min depth
int$maxDepthThe max depth

Definition at line 30 of file DepthRangeFilterIterator.php.

References DepthRangeFilterIterator\$minDepth.

Member Function Documentation

accept ( )

Filters the iterator values.

Returns
bool true if the value should be kept, false otherwise

Definition at line 43 of file DepthRangeFilterIterator.php.

References DepthRangeFilterIterator\$minDepth.

Member Data Documentation

$minDepth = 0
private