ICanBoogie
  • Documentation
  • API Reference
  • Storage v1.0.1
Namespaces
  • ICanBoogie
    • Storage
Classes
  • APCStorage
  • FileStorage
  • FileStorageIterator
Interfaces
  • StorageInterface
Traits
  • ArrayAccessTrait

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
Namespace: ICanBoogie\Storage
Located at FileStorageIterator.php

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

Iterator.

Iterator.


		
Storage v1.0.1 – Check on GitHub – API documentation generated by ApiGen