ExcludeDirectoryFilterIterator
extends FilterIterator
in package
implements
RecursiveIterator
ExcludeDirectoryFilterIterator filters out directories.
Tags
Table of Contents
Interfaces
- RecursiveIterator
Properties
- $excludedDirs : array<string, true>
- $excludedPattern : string|null
- $isRecursive : bool
- $iterator : Iterator<string, SplFileInfo>
- $pruneFilters : array<int, callable(SplFileInfo): bool>
Methods
- __construct() : mixed
- accept() : bool
- Filters the iterator values.
- getChildren() : self
- hasChildren() : bool
Properties
$excludedDirs
private
array<string, true>
$excludedDirs
= []
$excludedPattern
private
string|null
$excludedPattern
= null
$isRecursive
private
bool
$isRecursive
$iterator
private
Iterator<string, SplFileInfo>
$iterator
$pruneFilters
private
array<int, callable(SplFileInfo): bool>
$pruneFilters
= []
Methods
__construct()
public
__construct(Iterator<string, SplFileInfo> $iterator, array<int, string|callable(SplFileInfo): bool> $directories) : mixed
Parameters
- $iterator : Iterator<string, SplFileInfo>
-
The Iterator to filter
- $directories : array<int, string|callable(SplFileInfo): bool>
-
An array of directories to exclude
accept()
Filters the iterator values.
public
accept() : bool
Return values
boolgetChildren()
public
getChildren() : self
Return values
selfhasChildren()
public
hasChildren() : bool