PHP Class DotsUnited\BundleFu\FileList

Author: Jan Sorgalla ([email protected])
Inheritance: implements Iterator, implements Countable
Afficher le fichier Open project: dotsunited/bundlefu

Protected Properties

Свойство Type Description
$files array
$maxMTime integer

Méthodes publiques

Méthode Description
addFile ( string $file, SplFileInfo $fileInfo ) : FileList Add a file to the list.
count ( ) : integer Implements Countable::count()
current ( ) : SplFileInfo Implements Iterator::current()
getHash ( ) : string Get a hash of this file list.
getMaxMTime ( ) : integer Get the maximum modification of all files in this list.
key ( ) : string Implements Iterator::key()
next ( ) : void Implements Iterator::next()
reset ( ) : FileList Reset the file list.
rewind ( ) : void Implements Iterator::rewind()
valid ( ) : boolean Implements Iterator::valid()

Method Details

addFile() public méthode

Add a file to the list.
public addFile ( string $file, SplFileInfo $fileInfo ) : FileList
$file string The file
$fileInfo SplFileInfo
Résultat FileList

count() public méthode

Implements Countable::count()
public count ( ) : integer
Résultat integer

current() public méthode

Implements Iterator::current()
public current ( ) : SplFileInfo
Résultat SplFileInfo

getHash() public méthode

Get a hash of this file list.
public getHash ( ) : string
Résultat string

getMaxMTime() public méthode

Get the maximum modification of all files in this list.
public getMaxMTime ( ) : integer
Résultat integer

key() public méthode

Implements Iterator::key()
public key ( ) : string
Résultat string

next() public méthode

Implements Iterator::next()
public next ( ) : void
Résultat void

reset() public méthode

Reset the file list.
public reset ( ) : FileList
Résultat FileList

rewind() public méthode

Implements Iterator::rewind()
public rewind ( ) : void
Résultat void

valid() public méthode

Implements Iterator::valid()
public valid ( ) : boolean
Résultat boolean False if there's nothing more to iterate over

Property Details

$files protected_oe property

protected array $files
Résultat array

$maxMTime protected_oe property

protected int $maxMTime
Résultat integer