ExcludeDirectoryFilterIterator
extends FilterIterator
in package
implements
RecursiveIterator
ExcludeDirectoryFilterIterator filters out directories.
Tags
Interfaces, Classes and Traits
- RecursiveIterator
Table of Contents
- $excludedDirs : mixed
- $excludedPattern : mixed
- $isRecursive : mixed
- $iterator : mixed
- __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
Return values
mixed —accept()
Filters the iterator values.
public
accept() : bool
Return values
bool —True if the value should be kept, false otherwise
getChildren()
public
getChildren() : self
Return values
self —hasChildren()
public
hasChildren() : bool