All pastes #287086 Raw Edit

sleek

public php v1 · immutable
#287086 ·published 2006-12-21 03:51 UTC
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();    }}