Beispiel #1
0
 /**
  * Next
  *
  * @return mixed
  */
 public function next()
 {
     $this->resource->next();
     $this->currentData = $this->resource->current();
     $this->currentComplete = true;
     $this->position++;
     return $this->currentData;
 }
 /**
  * Returns the document at the specified index as an object
  *
  * @since v1.0.0
  */
 public function row($index = 0, $class = NULL, $as_object = FALSE)
 {
     $size = $this->_cursor->count();
     $this->_cursor->reset();
     $res = array();
     for ($i = 0; $i < $size; $i++) {
         $this->_cursor->next();
         if ($i == $index && $index <= $size) {
             $res = $as_object ? (object) $this->_cursor->current() : $this->_cursor->current();
             break;
         }
     }
     return $res;
 }
Beispiel #3
0
 /**
  * Iterator: next
  */
 public function next()
 {
     $this->_cursor->next();
 }
Beispiel #4
0
 /**
  * {@inheritdoc}
  */
 public function next()
 {
     $this->mongoCursor->next();
 }
 /**
  * Return the next object to which this cursor points, and advance the cursor
  *
  * @link http://www.php.net/manual/en/mongocursor.getnext.php
  * @throws \MongoConnectionException
  * @throws \MongoCursorTimeoutException
  * @return array|Document Returns the next object
  */
 public function getNext()
 {
     $this->cursor->next();
     return $this->current();
 }
Beispiel #6
0
 /**
  * Advances the pointer
  *
  * @return void
  */
 public function next()
 {
     return $this->cursor->next();
 }
Beispiel #7
0
 /**
  * next.
  */
 public function next()
 {
     $this->logQuery();
     return parent::next();
 }
Beispiel #8
0
 /**
  * Iterator::next
  */
 public function next()
 {
     $this->myResultCursor->next();
 }
Beispiel #9
0
 /**
  * Iterator next method (used in foreach)
  *
  */
 public function next()
 {
     ++$this->position;
     $this->cursor->next();
 }
Beispiel #10
0
 public function next()
 {
     return parent::next();
 }
Beispiel #11
0
 /**
  * 游标下一条记录
  * @return null 
  */
 public function next()
 {
     return $this->oMongoCursor->next();
 }