_result = $result; $this->_row=$this->_result->fetch_object(); } /** * Throws exception if rewind is attempted. * * @return void * @access public * @throws Exception If rewind is attempted */ public function rewind() { if($this->_position!=0) throw new Exception('Mysqli result cannot be rewound for unbuffered queries.'); } /** * Iterates to the next row in the result set * * @return void * @access public */ public function next() { $this->_position++; $this->_row=$this->_result->fetch_object(); if ($this->_row == null) $this->_result->free(); } }