FileAccess Orion

ApcIterator
in package
implements IteratorInterface

Interfaces, Classes, Traits and Enums

IteratorInterface

Table of Contents

$baseIterator  : APCIterator
The base APCIterator instance
$mode  : int
The iterator mode
$prefixLength  : int
The length of the namespace prefix
$storage  : Apc
The apc storage instance
__construct()  : mixed
Constructor
current()  : mixed
Get current key, value or metadata.
getMode()  : int
Get iterator mode
getStorage()  : Apc
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()  : ApcIterator
Set iterator mode
valid()  : bool
Checks if current position is valid

Properties

$baseIterator

The base APCIterator instance

protected APCIterator $baseIterator

$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(Apc $storage, APCIterator $baseIterator, string $prefix) : mixed
Parameters
$storage : Apc
$baseIterator : APCIterator
$prefix : string
Return values
mixed

current()

Get current key, value or metadata.

public current() : mixed
Return values
mixed

getMode()

Get iterator mode

public getMode() : int
Return values
int

Value of IteratorInterface::CURRENT_AS_*

key()

Get current key

public key() : string
Return values
string

next()

Move forward to next element

public next() : void
Return values
void

rewind()

Rewind the Iterator to the first element.

public rewind() : void
Return values
void

valid()

Checks if current position is valid

public valid() : bool
Return values
bool

Search results