Documentation

DBIterator implements Iterator

Iterator wrapper for adodb result objects

Tags
copyright

CLOUDREXX CMS - CLOUDREXX AG

author

Stefan Heinemann sh@adfinis.com

subpackage

module_newsletter

Table of Contents

Interfaces

Iterator

Properties

$empty  : mixed
If the result was empty
$obj  : mixed
The result object of adodb
$position  : mixed
The position in the rows

Methods

__construct()  : mixed
Assign the object
current()  : array<string|int, mixed>
Return the current object
key()  : int
Return the current key
next()  : void
Go to the next item
rewind()  : void
Go back to first position
valid()  : bool
Return if there are any items left

Properties

$position

The position in the rows

private mixed $position = 0

Mainly just to have something to return in the key() method.

Methods

current()

Return the current object

public current() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results