ExcludeDirectoryFilterIterator
extends FilterIterator
in package
implements
RecursiveIterator
ExcludeDirectoryFilterIterator filters out directories.
Tags
Table of Contents
Interfaces
- RecursiveIterator
Properties
- $excludedDirs : mixed
- $excludedPattern : mixed
- $isRecursive : mixed
- $iterator : mixed
Methods
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
- getChildren() : self
- hasChildren() : bool
Properties
$excludedDirs
private
mixed
$excludedDirs
= []
$excludedPattern
private
mixed
$excludedPattern
$isRecursive
private
mixed
$isRecursive
$iterator
private
mixed
$iterator
Methods
__construct()
public
__construct(Iterator $iterator, array<string|int, string> $directories) : mixed
Parameters
- $iterator : Iterator
-
The Iterator to filter
- $directories : array<string|int, string>
-
An array of directories to exclude
accept()
Filters the iterator values.
public
accept() : bool
Attributes
Return values
bool —True if the value should be kept, false otherwise
getChildren()
public
getChildren() : self
Attributes
Return values
selfhasChildren()
public
hasChildren() : bool