_pointer = 0; $this->_data = $resultset; // PHP5 copies arrays by default as well, no? } /* [INHERITED DOCS] */ function destroy() { unset($this->_data); unset($this->_pointer); parent::destroy(); } /* [INHERITED DOCS] */ function getNext() { if ($this->_pointer >= sizeof($this->_data)) return false; return $this->_data[$this->_pointer++]; } /* [INHERITED DOCS] */ function at() { return $this->_pointer; } /* [INHERITED DOCS] */ function size() { return sizeof($this->_data); } /* [INHERITED DOCS] */ function seekAbs($offset) { if($offset < 0 || $offset >= sizeof($this->_data)) return false; $this->_pointer = $offset; return true; } } ?>