ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
MDB2_BufferedIterator Class Reference
+ Inheritance diagram for MDB2_BufferedIterator:
+ Collaboration diagram for MDB2_BufferedIterator:

Public Member Functions

 valid ()
 Check if the end of the result set has been reached.
 count ()
 Returns the number of rows in a result object.
 rewind ()
 Seek to the first row in a result set.
- Public Member Functions inherited from MDB2_Iterator
 __construct ($result, $fetchmode=MDB2_FETCHMODE_DEFAULT)
 Constructor.
 seek ($rownum)
 Seek forward to a specific row in a result set.
 next ()
 Fetch next row of data.
 current ()
 return a row of data
 free ()
 Free the internal resources associated with result.
 key ()
 Returns the row number.
 __destruct ()
 Destructor.

Additional Inherited Members

- Protected Attributes inherited from MDB2_Iterator
 $fetchmode
 $result
 $row

Detailed Description

Definition at line 208 of file Iterator.php.

Member Function Documentation

MDB2_BufferedIterator::count ( )

Returns the number of rows in a result object.

Returns
int|MDB2_Error number of rows, false|MDB2_Error if result is invalid public

Definition at line 235 of file Iterator.php.

{
if ($this->result) {
return $this->result->numRows();
}
return false;
}
MDB2_BufferedIterator::rewind ( )

Seek to the first row in a result set.

Returns
void public

Reimplemented from MDB2_Iterator.

Definition at line 252 of file Iterator.php.

References MDB2_Iterator\seek().

{
$this->seek(0);
}

+ Here is the call graph for this function:

MDB2_BufferedIterator::valid ( )

Check if the end of the result set has been reached.

Returns
bool|MDB2_Error true on success, false|MDB2_Error if result is invalid public

Reimplemented from MDB2_Iterator.

Definition at line 218 of file Iterator.php.

{
if ($this->result) {
return $this->result->valid();
}
return false;
}

The documentation for this class was generated from the following file: