Class DbaIterator

Summary

Fully Qualified Name: Zend\Cache\Storage\Adapter\DbaIterator
Implements: IteratorInterface

Description

Methods

Name Description Defined By
__construct() Constructor DbaIterator
current() Get current key, value or metadata. DbaIterator
getMode() Get iterator mode DbaIterator
getStorage() Get storage instance DbaIterator
key() Get current key DbaIterator
next() Move forward to next element DbaIterator
rewind() Rewind the Iterator to the first element. DbaIterator
setMode() Set iterator mode DbaIterator
valid() Checks if current position is valid DbaIterator

Method Details

__construct()

Constructor

Parameter Name Type Description
$storage \Dba
$handle resource
$prefix string

Returns:

current()

Get current key, value or metadata.

Returns: mixed

getMode()

Get iterator mode

Returns: int Value of IteratorInterface::CURRENT_AS_*

getStorage()

Get storage instance

Returns: \Dba

key()

Get current key

Returns: string

next()

Move forward to next element

Returns: void

rewind()

Rewind the Iterator to the first element.

Returns: void

setMode()

Set iterator mode

Parameter Name Type Description
$mode int

Returns: \DbaIterator Provides a fluent interface

valid()

Checks if current position is valid

Returns: bool

Top