SizeRangeFilterIterator
extends FilterIterator
in package
SizeRangeFilterIterator filters out files that are not in the given size range.
Tags
Table of Contents
Properties
- $comparators : mixed
Methods
- __construct() : mixed
- Constructor.
- accept() : bool
- Filters the iterator values.
- rewind() : mixed
- This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
Properties
$comparators
private
mixed
$comparators
= array()
Methods
__construct()
Constructor.
public
__construct(Iterator $iterator, array<string|int, NumberComparator> $comparators) : mixed
Parameters
- $iterator : Iterator
-
The Iterator to filter
- $comparators : array<string|int, NumberComparator>
-
An array of NumberComparator instances
accept()
Filters the iterator values.
public
accept() : bool
Return values
bool —true if the value should be kept, false otherwise
rewind()
This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.
public
rewind() : mixed