Source for file ResultIterator.php
Documentation is available at ResultIterator.php
// ----------------------------------------------------------------------------------
// Class: RDF_RDQL_ResultIterator
// ----------------------------------------------------------------------------------
* 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 Model_Memory or a Model_MDB.
* @author Daniel Westphal <mail@d-westphal.de>, Chris Bizer <chris@bizer.de>
* Reference to the RDQL result
* RDQLResultIterator does not use the build in PHP array iterator,
* so you can use serveral iterators on a single RDQL result.
* @param object RDQLResult
foreach($RDQLResult[0 ] as $value) {
* Returns the labels of the result as array.
* @return array of strings with the result labels OR null if there are no results.
* Returns the number of results.
* Returns TRUE if there are more results.
* Returns TRUE if the first result has not been reached.
* Returns the next result array.
* @param integer $element
* @return result array OR single result if $element was specified OR null if there is no next result.
function next($element = null )
* Returns the previous result.
* @param integer $element
* @return result array OR single result if $element was specified OR null if there is no next result.
* Returns the current result.
* @param integer $element
* @return result array OR single result if $element was specified OR null if there is no next result.
* Moves the pointer to the first result.
* Moves the pointer to the last result.
* Moves the pointer to a specific result.
* If you set an off-bounds value, next(), previous() and current() will return null
* Returns the current position of the iterator.
Documentation generated on Mon, 11 Mar 2019 15:39:50 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|