Ejemplo n.º 1
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
     }
     $this->dataSource->next();
     $this->position++;
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }
Ejemplo n.º 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++;
 }
Ejemplo n.º 4
0
 /**
  *
  */
 function next()
 {
     return $this->_result->next();
 }