_resource = &$resource; $this->_pointer = 0; $this->_end = pg_num_rows($this->_resource); } /* [INHERITED DOCS] */ function destroy() { pg_free_result($this->_resource); parent::destroy(); } /* [INHERITED DOCS] */ function getNext() { if ($this->_pointer < $this->size()) { ++$this->_pointer; return pg_fetch_assoc($this->_resource); } return false; } /* [INHERITED DOCS] */ function at() { return $this->_pointer; } /* [INHERITED DOCS] */ function size() { return $this->_end; } /* [INHERITED DOCS] */ function seekAbs($offset) { if ($offset >= 0 && $offset < $this->_end) { $this->_pointer = $offset; pg_result_seek($this->_resource, $offset); return true; } return false; } } ?>