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

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()

__construct(Iterator $iterator, array $directories)

Constructor.

Parameters

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

bool accept()

Filters the iterator values.

Return Value

bool True if the value should be kept, false otherwise

hasChildren()

getChildren()

doc_Symfony
2016-10-28 06:15:40
Comments
Leave a Comment

Please login to continue.