_rowset = $rowset; $this->_key = $key; $this->_value = $value; } public function current() { $value = $this->_value; $current = $this->_rowset->current(); return $current->$value; } public function key() { $key = $this->_key; $current = $this->_rowset->current(); return $current->$key; } public function next() { $this->_rowset->next(); } public function rewind() { $this->_rowset->rewind(); } public function seek($position) { $this->_rowset->seek($position); } public function valid() { return $this->_rowset->valid(); } }