Itérateurs
PHP Manual

La classe RecursiveDirectoryIterator

(PHP 5)

Introduction

La classe RecursiveDirectoryIterator fournit un moyen d'itérer récursivement sur des dossiers d'un système de fichiers.

Synopsis de la classe

RecursiveDirectoryIterator extends FileSystemIterator implements Traversable , Iterator , SeekableIterator , RecursiveIterator {
/* Méthodes */
public __construct ( string $path [, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO ] )
public mixed getChildren ( void )
public string getSubPath ( void )
public string getSubPathname ( void )
public bool hasChildren ([ bool $allow_links = false ] )
public string key ( void )
public void next ( void )
public void rewind ( void )
/* Méthodes héritées */
public FilesystemIterator::__construct ( string $path [, int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS ] )
public mixed FilesystemIterator::current ( void )
public int FilesystemIterator::getFlags ( void )
public string FilesystemIterator::key ( void )
public void FilesystemIterator::next ( void )
public void FilesystemIterator::rewind ( void )
public void FilesystemIterator::setFlags ([ int $flags ] )
}

Historique

Version Description
5.3.0 FilesystemIterator devient la classe parente. Avant, la classe mère était DirectoryIterator.
5.3.0 Implémente SeekableIterator.
5.2.11, 5.3.1 Ajout de RecursiveDirectoryIterator::FOLLOW_SYMLINKS

Sommaire


Itérateurs
PHP Manual