32 $this->_resultFactory = $resultFactory;
33 $this->_current = $this->_resultFactory->next();
49 public function key() {
50 if (!$this->_current)
return null;
52 return $this->_current->getId();
59 $this->_current = $this->_resultFactory->next();
69 if ($this->_i != 0)
throw new Exception(
'DAOResultIterator currently does not support rewind() once iteration has started.');
75 public function valid() {
76 return ($this->_current !==
null);
82 public function count() {
83 return $this->_resultFactory->getCount();