class LevelDBIterator implements Iterator (View source)

Methods

__construct(LevelDB $db, array $read_options = [])

No description

bool
valid()

Checks if current position is valid

void
rewind()

Rewind the Iterator to the first element

last()

No description

seek($key)

No description

void
next()

Move forward to next element

prev()

No description

mixed
key()

Return the key of the current element

mixed
current()

Return the current element

getError()

No description

destroy()

No description

Details

__construct(LevelDB $db, array $read_options = [])

No description

Parameters

LevelDB $db
array $read_options

bool valid()

Checks if current position is valid

Return Value

bool

The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.

void rewind()

Rewind the Iterator to the first element

Return Value

void

Any returned value is ignored.

last()

No description

seek($key)

No description

Parameters

$key

void next()

Move forward to next element

Return Value

void

Any returned value is ignored.

prev()

No description

mixed key()

Return the key of the current element

Return Value

mixed

TKey on success, or null on failure.

mixed current()

Return the current element

Return Value

mixed

Can return any type.

getError()

No description

destroy()

No description