Class: RdqlResultIterator ---------------------------------------------------------------------------------- Iterator for traversing Rdql results. This class can be used for iterating forward and backward trough Rdql results. It should be instanced using the rdqlQueryAsIterator() method of a MemModel or a DBModel. <BR><BR>History:<UL> <LI>25-03-2004 : Bug in the handling of empty results fixed ( radol@gmx.de ).</LI> <LI>11-06-2003 : First version of this class.</LI> </UL>
|
positionCurrent position RdqlResultIterator does not use the build in PHP array iterator, so you can use serveral iterators on a single Rdql result.
current| PHP | result current(integer $element) |
|---|
Returns the current result.
Arguments
Return
array OR single result if $element was specified OR NULL if there is no next result.
getResultLabels| PHP | array getResultLabels() |
|---|
Returns the labels of the result as array.
Return
of strings with the result labels OR null if there are no results.
moveTo| PHP | void moveTo(unknown $position) |
|---|
Moves the pointer to a specific result. If you set an off-bounds value, next(), previous() and current() will return NULL
Arguments
next| PHP | result next(integer $element) |
|---|
Returns the next result array.
Arguments
Return
array OR single result if $element was specified OR NULL if there is no next result.
previous| PHP | result previous(integer $element) |
|---|
Returns the previous result.
Arguments
Return
array OR single result if $element was specified OR NULL if there is no next result.