/** * Check if there is a current result item * after calls to rewind() or next() * Implements Iterator * * @return bool */ public function valid() { if (isset($this->cache[$this->current])) { return true; } return $this->iterator->valid(); }
/** * Check if there is a current result item * after calls to rewind() or next() * Implements Iterator * * @return boolean */ public function valid() { if (isset($this->_cache[$this->_current])) { return true; } else { return $this->_iterator->valid(); } }