class ExcludeDirectoryFilterIterator extends FilterIterator implements RecursiveIterator

ExcludeDirectoryFilterIterator filters out directories.

Methods

rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

__construct(Iterator $iterator, array $directories)

No description

bool
accept()

Filters the iterator values.

hasChildren()

No description

getChildren()

No description

Details

in FilterIterator at line 32
rewind()

This is a workaround for the problem with \FilterIterator leaving inner \FilesystemIterator in wrong state after rewind in some cases.

See also

at line 30
__construct(Iterator $iterator, array $directories)

Parameters

Iterator $iterator The Iterator to filter
array $directories An array of directories to exclude

at line 55
bool accept()

Filters the iterator values.

Return Value

bool True if the value should be kept, false otherwise

at line 71
hasChildren()

at line 76
getChildren()