result = $_result; $this->currRows = -1; } /** * Returns the next row if it exists, else, returns false * @return array next row of data, if it exists * @access public */ public function getNextRow() { if (count($this->result) > ++$this->currRows){ return $this->result[$this->currRows]; } else { return false; } } /** * Returns the data from a specific field * @param string $name Field name * @return string data * @access public */ public function getFieldByName($name) { if (count($this->result) > $this->currRows) return $this->result[$this->currRows][$name]; } /** * Reset the result set * @return void * @access public */ public function resetRow() { $this->currRows = -1; } /** * Record count * @return int Numero de registros * @access public */ public function recordCount() { return count($this->result); } } ?>