data = $data; $this->pointer = 0; $this->count = count( $data ); } /** * @return int */ function RecordCount() { return $this->count; } /** * @return int */ function RowCount() { return $this->RecordCount(); } /** * @return mixed A row from the data array or null */ function FetchRow() { if ($this->pointer < $this->count) { $result = $this->data[$this->pointer]; $this->pointer++; return $result; } else { return null; } } /** * @return array */ function GetRows() { return $this->data; } /** * TODO: Remove for 1.6. Deprecated */ function absolutepage() { return 1; } /** * TODO: Remove for 1.6. Deprecated */ function atfirstpage() { return 1; } /** * TODO: Remove for 1.6. Deprecated */ function atlastpage() { return 1; } /** * TODO: Remove for 1.6. Deprecated */ function lastpageno() { return 1; } /** * TODO: Remove for 1.6. Deprecated */ function Close() { } }