Documentation

FileTypeFilterIterator extends FilterIterator
in package

FileTypeFilterIterator only keeps files, directories, or both.

Tags
author

Fabien Potencier fabien@symfony.com

extends

\FilterIterator<string, \SplFileInfo>

Table of Contents

ONLY_DIRECTORIES  = 2
ONLY_FILES  = 1
$mode  : int
__construct()  : mixed
accept()  : bool
Filters the iterator values.

Constants

Properties

Methods

__construct()

public __construct(Iterator $iterator, int $mode) : mixed
Parameters
$iterator : Iterator

The Iterator to filter

$mode : int

The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)

Return values
mixed

Search results