Zend\Cache\Storage\Adapter\FilesystemIterator
Synopsis
class FilesystemIterator
implements
IteratorInterface
{
- // members
- protected Filesystem $storage;
- protected int $mode;
- protected GlobIterator $globIterator;
- protected string $prefix;
- protected int $prefixLength;
- // methods
- public void __construct()
- public Filesystem getStorage()
- public int getMode()
- public FilesystemIterator setMode()
- public mixed current()
- public string key()
- public void next()
- public bool valid()
- public bool rewind()
Hierarchy
Implements
Constants
Name | Value |
---|---|
CURRENT_AS_SELF | 0 |
CURRENT_AS_KEY | 1 |
CURRENT_AS_VALUE | 2 |
CURRENT_AS_METADATA | 3 |
Members
protected
- $globIterator
—
GlobIterator
The GlobIterator instance - $mode
—
int
The iterator mode - $prefix
—
string
The namespace sprefix - $prefixLength
—
int
String length of namespace prefix - $storage
—
Zend\Cache\Storage\Adapter\Filesystem
The Filesystem storage instance
Methods
public
- __construct() — Constructor
- current() — Get current key, value or metadata.
- getMode() — Get iterator mode
- getStorage() — Get storage instance
- key() — Get current key
- next() — Move forward to next element
- rewind() — Rewind the Iterator to the first element.
- setMode() — Set iterator mode
- valid() — Checks if current position is valid