Zend Framework
3.0
|
Public Member Functions | |
__construct (StorageInterface $storage, array $keys) | |
Constructor. | |
getStorage () | |
Get storage instance. | |
getMode () | |
Get iterator mode. | |
setMode ($mode) | |
Set iterator mode. | |
current () | |
Get current key, value or metadata. | |
key () | |
Get current key. | |
valid () | |
Checks if current position is valid. | |
next () | |
Move forward to next element. | |
rewind () | |
Rewind the Iterator to the first element. | |
count () | |
Count number of items. | |
Protected Attributes | |
$storage | |
$mode = IteratorInterface::CURRENT_AS_KEY | |
$keys | |
$count | |
$position = 0 | |
Additional Inherited Members | |
Public Attributes inherited from IteratorInterface | |
const | CURRENT_AS_SELF = 0 |
const | CURRENT_AS_KEY = 1 |
const | CURRENT_AS_VALUE = 2 |
const | CURRENT_AS_METADATA = 3 |
__construct | ( | StorageInterface | $storage, |
array | $keys | ||
) |
Constructor.
StorageInterface | $storage | |
array | $keys |
count | ( | ) |
Count number of items.
current | ( | ) |
Get current key, value or metadata.
getMode | ( | ) |
Get iterator mode.
Implements IteratorInterface.
getStorage | ( | ) |
key | ( | ) |
Get current key.
next | ( | ) |
Move forward to next element.
rewind | ( | ) |
Rewind the Iterator to the first element.
setMode | ( | $mode | ) |
Set iterator mode.
int | $mode |
Implements IteratorInterface.
valid | ( | ) |
Checks if current position is valid.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |