public function next() { $this->_index++; $this->_current = $this->_records->fetch_assoc(); Model::dbCheckError(); if (!$this->_current) { $this->_records->free(); } }