Class FileStorageIterator
Iterates through a file storage.
The iterator is usually created using the FileStorage::matching() method.
The iterator can also be used to delete matching keys.
-
ICanBoogie\Storage\FileStorageIterator
implements
Iterator
Methods summary
public
__construct( Iterator $iterator
)
public
current( void )
: DirectoryIterator
Returns the directory iterator.
Returns the directory iterator.
Dot files are skipped.
Returns
DirectoryIterator
Implementation of
Iterator::current()
public
next( void )
Implementation of
Iterator::next()
public
key( void )
: string
Returns the pathname of the key.
Returns the pathname of the key.
Returns
string
Implementation of
Iterator::key()
public
valid( void )
Implementation of
Iterator::valid()
public
rewind( void )
Implementation of
Iterator::rewind()
public
delete( void )
Deletes the key found by the iterator.
Deletes the key found by the iterator.
Properties summary
protected
$iterator
: Iterator