예제 #1
0
 /**
  * Move to the next item
  */
 public function next()
 {
     if ($this->result) {
         $this->current = $this->result->current();
         $this->result->next();
     }
     if (!$this->current) {
         // if it's not a first iteration
         if (isset($this->_collection)) {
             $this->_collection->free(true);
         }
         $this->result = $this->getIterator();
         $this->current = $this->result->current();
         $this->result->next();
         $this->offset += $this->limit;
     }
 }
예제 #2
0
 public function free($deep = false)
 {
     $this->removeCacheTags();
     return parent::free($deep);
 }