php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
RecursiveDirectoryIterator Class Reference
Inheritance diagram for RecursiveDirectoryIterator:
FilesystemIterator RecursiveIterator DirectoryIterator Iterator SplFileInfo SeekableIterator Traversable Stringable Iterator Traversable Phar PharData

Public Member Functions

 __construct (string $directory, int $flags=FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO)
 
 hasChildren (bool $allowLinks=false)
 
 getChildren ()
 
 getSubPath ()
 
 getSubPathname ()
 
- Public Member Functions inherited from FilesystemIterator
 rewind ()
 
 key ()
 
 current ()
 
 getFlags ()
 
 setFlags (int $flags)
 
- Public Member Functions inherited from DirectoryIterator
 __construct (string $directory)
 
 getFilename ()
 
 getExtension ()
 
 getBasename (string $suffix="")
 
 isDot ()
 
 valid ()
 
 next ()
 
 seek (int $offset)
 
 __toString ()
 
- Public Member Functions inherited from SplFileInfo
 getPath ()
 
 getPathname ()
 
 getPerms ()
 
 getInode ()
 
 getSize ()
 
 getOwner ()
 
 getGroup ()
 
 getATime ()
 
 getMTime ()
 
 getCTime ()
 
 getType ()
 
 isWritable ()
 
 isReadable ()
 
 isExecutable ()
 
 isFile ()
 
 isDir ()
 
 isLink ()
 
 getLinkTarget ()
 
 getRealPath ()
 
 getFileInfo (?string $class=null)
 
 getPathInfo (?string $class=null)
 
 openFile (string $mode="r", bool $useIncludePath=false, $context=null)
 
 setFileClass (string $class=SplFileObject::class)
 
 setInfoClass (string $class=SplFileInfo::class)
 
 __debugInfo ()
 
 _bad_state_ex ()
 
- Public Member Functions inherited from RecursiveIterator
 hasChildren ()
 

Additional Inherited Members

- Data Fields inherited from FilesystemIterator
const int CURRENT_MODE_MASK = UNKNOWN
 
const int CURRENT_AS_PATHNAME = UNKNOWN
 
const int CURRENT_AS_FILEINFO = UNKNOWN
 
const int CURRENT_AS_SELF = UNKNOWN
 
const int KEY_MODE_MASK = UNKNOWN
 
const int KEY_AS_PATHNAME = UNKNOWN
 
const int FOLLOW_SYMLINKS = UNKNOWN
 
const int KEY_AS_FILENAME = UNKNOWN
 
const int NEW_CURRENT_AND_KEY = UNKNOWN
 
const int OTHER_MODE_MASK = UNKNOWN
 
const int SKIP_DOTS = UNKNOWN
 
const int UNIX_PATHS = UNKNOWN
 

Detailed Description

Definition at line 196 of file spl_directory.stub.php.

Constructor & Destructor Documentation

◆ __construct()

RecursiveDirectoryIterator::__construct ( string $directory,
int $flags = FilesystemIterator::KEY_AS_PATHNAME | FilesystemIterator::CURRENT_AS_FILEINFO )

Reimplemented from FilesystemIterator.

Definition at line 198 of file spl_directory.stub.php.

Member Function Documentation

◆ getChildren()

RecursiveDirectoryIterator::getChildren ( )

@tentative-return-type

Implements RecursiveIterator.

Definition at line 204 of file spl_directory.stub.php.

◆ getSubPath()

RecursiveDirectoryIterator::getSubPath ( )

@tentative-return-type

Definition at line 207 of file spl_directory.stub.php.

◆ getSubPathname()

RecursiveDirectoryIterator::getSubPathname ( )

@tentative-return-type

Definition at line 210 of file spl_directory.stub.php.

◆ hasChildren()

RecursiveDirectoryIterator::hasChildren ( bool $allowLinks = false)

@tentative-return-type

Definition at line 201 of file spl_directory.stub.php.


The documentation for this class was generated from the following file: