FileAccess Orion

DbaIterator
in package
implements IteratorInterface

Interfaces, Classes, Traits and Enums

IteratorInterface

Table of Contents

$currentInternalKey  : string|bool
The current internal key
$handle  : resource
The dba resource handle
$mode  : int
The iterator mode
$prefixLength  : int
The length of the namespace prefix
$storage  : Dba
The apc storage instance
__construct()  : mixed
Constructor
current()  : mixed
Get current key, value or metadata.
getMode()  : int
Get iterator mode
getStorage()  : Dba
Get storage instance
key()  : string
Get current key
next()  : void
Move forward to next element
rewind()  : void
Rewind the Iterator to the first element.
setMode()  : DbaIterator
Set iterator mode
valid()  : bool
Checks if current position is valid

Properties

$currentInternalKey

The current internal key

protected string|bool $currentInternalKey

$handle

The dba resource handle

protected resource $handle

$mode

The iterator mode

protected int $mode = \Zend\Cache\Storage\IteratorInterface::CURRENT_AS_KEY

$prefixLength

The length of the namespace prefix

protected int $prefixLength

Methods

__construct()

Constructor

public __construct(Dba $storage, resource $handle, string $prefix) : mixed
Parameters
$storage : Dba
$handle : resource
$prefix : string
Return values
mixed

getMode()

Get iterator mode

public getMode() : int
Return values
int

Value of IteratorInterface::CURRENT_AS_*

valid()

Checks if current position is valid

public valid() : bool
Return values
bool

Search results