Documentation

ExcludeDirectoryFilterIterator extends FilterIterator
in package
implements RecursiveIterator

ExcludeDirectoryFilterIterator filters out directories.

Tags
author

Fabien Potencier fabien@symfony.com

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

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

Search results