/**
  * Iterator: move pointer to next item
  *
  * @return void
  */
 public function next()
 {
     if ($this->buffer === null) {
         $this->buffer = -2;
         // implicitly disable buffering from here on
     }
     $this->dataSource->next();
     $this->position++;
 }
 /**
  * Move forward to next element
  *
  * @link    http://php.net/manual/en/iterator.next.php
  * @return  void
  */
 public function next()
 {
     if (!$this->queryResult || !$this->queryResult->getAffectedRows()) {
         $this->currentSiteInfo = null;
         return null;
     }
     $this->restoreServices();
     $this->queryResult->next();
     return $this->createCurrentSiteInfo();
 }
Beispiel #3
0
 /**
  * Iterator: move pointer to next item
  *
  * @return void
  */
 public function next()
 {
     if ($this->buffer === null) {
         $this->buffer = -2;
         // implicitly disable buffering from here on
     }
     if (!is_array($this->buffer) || $this->position == $this->dataSource->key()) {
         $this->dataSource->next();
     }
     $this->position++;
 }
Beispiel #4
0
 /**
  *
  */
 function next()
 {
     return $this->_result->next();
 }