FileTypeFilterIterator
extends FilterIterator
in package
FileTypeFilterIterator only keeps files, directories, or both.
Tags
Table of Contents
- ONLY_DIRECTORIES = 2
- ONLY_FILES = 1
- $mode : int
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
Constants
ONLY_DIRECTORIES
public
mixed
ONLY_DIRECTORIES
= 2
ONLY_FILES
public
mixed
ONLY_FILES
= 1
Properties
$mode
private
int
$mode
Methods
__construct()
public
__construct(Iterator $iterator, int $mode) : mixed
Parameters
- $iterator : Iterator
-
The Iterator to filter
- $mode : int
-
The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
Return values
mixed —accept()
Filters the iterator values.
public
accept() : bool