Index: branches/5.2.x/core/kernel/db/dblist.php =================================================================== diff -u -N -r15137 -r15268 --- branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 15137) +++ branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 15268) @@ -1,6 +1,6 @@ mainList = true; } + + /** + * Moves recordset pointer to first element + * + * @return void + * @access public + * @implements Iterator::rewind + */ + public function rewind() + { + $this->Query(); + $this->GoFirst(); + } + + /** + * Returns value at current position + * + * @return mixed + * @access public + * @implements Iterator::current + */ + function current() + { + return $this->getCurrentRecord(); + } + + /** + * Returns key at current position + * + * @return mixed + * @access public + * @implements Iterator::key + */ + function key() + { + return $this->CurrentIndex; + } + + /** + * Moves recordset pointer to next position + * + * @return void + * @access public + * @implements Iterator::next + */ + function next() + { + $this->GoNext(); + } + + /** + * Detects if current position is within recordset bounds + * + * @return bool + * @access public + * @implements Iterator::valid + */ + public function valid() + { + return !$this->EOL(); + } + + /** + * Counts recordset rows + * + * @return int + * @access public + * @implements Countable::count + */ + public function count() + { + return $this->SelectedCount; + } }