OpendirIterator
in package
implements
Iterator
Provides an iterator around an opendir resource. This is useful when you need to provide context to an opendir so you can't use RecursiveDirectoryIterator
Table of Contents
Interfaces
- Iterator
Properties
- $currentFile : SplFileInfo
- $dirHandle : resource
- $filePrefix : string
- $key : int
Methods
- __construct() : mixed
- __destruct() : mixed
- current() : mixed
- key() : mixed
- next() : mixed
- rewind() : mixed
- valid() : mixed
Properties
$currentFile
protected
SplFileInfo
$currentFile
$dirHandle
protected
resource
$dirHandle
$filePrefix
protected
string
$filePrefix
$key
protected
int
$key
= -1
Methods
__construct()
public
__construct(resource $dirHandle[, string $filePrefix = '' ]) : mixed
Parameters
- $dirHandle : resource
-
Opened directory handled returned from opendir
- $filePrefix : string = ''
-
Prefix to add to each filename
__destruct()
public
__destruct() : mixed
current()
public
current() : mixed
key()
public
key() : mixed
next()
public
next() : mixed
rewind()
public
rewind() : mixed
valid()
public
valid() : mixed