Documentation

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

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


        
On this page

Search results