rendered paste body<?phpclass RowsetIterator extends ArrayIterator{ protected $_rowset = null; protected $_key = null; protected $_value = null; public function __construct(Zend_Db_Table_Rowset $rowset, $key, $value) { $this->_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(); }}