ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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. More...
 
 count ()
 Returns the number of rows in a result object. More...
 
 rewind ()
 Seek to the first row in a result set. More...
 
- Public Member Functions inherited from MDB2_Iterator
 __construct ($result, $fetchmode=MDB2_FETCHMODE_DEFAULT)
 Constructor. More...
 
 seek ($rownum)
 Seek forward to a specific row in a result set. More...
 
 next ()
 Fetch next row of data. More...
 
 current ()
 return a row of data More...
 
 valid ()
 Check if the end of the result set has been reached. More...
 
 free ()
 Free the internal resources associated with result. More...
 
 key ()
 Returns the row number. More...
 
 rewind ()
 Seek to the first row in a result set. More...
 
 __destruct ()
 Destructor. More...
 

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

◆ count()

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.

236  {
237  if ($this->result) {
238  return $this->result->numRows();
239  }
240  return false;
241  }

◆ rewind()

MDB2_BufferedIterator::rewind ( )

Seek to the first row in a result set.

Returns
void public

Definition at line 252 of file Iterator.php.

References MDB2_Iterator\seek().

253  {
254  $this->seek(0);
255  }
seek($rownum)
Seek forward to a specific row in a result set.
Definition: Iterator.php:82
+ Here is the call graph for this function:

◆ valid()

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

Definition at line 218 of file Iterator.php.

219  {
220  if ($this->result) {
221  return $this->result->valid();
222  }
223  return false;
224  }

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