Symfony API
Class

Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator

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.

from FilterIterator
__construct(Iterator $iterator, array $directories)

Constructor.

bool accept()

Filters the iterator values.

hasChildren()

getChildren()

Details

in FilterIterator at line 29
public rewind()

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

See also

FilterIterator::rewind()

at line 32
public __construct(Iterator $iterator, array $directories)

Constructor.

Parameters

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

at line 56
public bool accept()

Filters the iterator values.

Return Value

bool true if the value should be kept, false otherwise

at line 72
public hasChildren()

at line 77
public getChildren()