/** * Fetch one row and move cursor to nex row * * @param int $type (For non cached results)(0-Normal Array, 1-Associative Array, 2-Object) * @return array */ public function fetchRecord($type = 1) { if ($this->is_result_cached) { if (!isset($this->result[$this->last_record_position])) { return array(); } $record = $this->result[$this->last_record_position]; $this->last_record_position++; return $this->convertRowType($record, $type); } else { return parent::fetchRecord($type); } }