/** * 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; }
/** * Iterator: next */ public function next() { $this->_cursor->next(); }
/** * {@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(); }
/** * Advances the pointer * * @return void */ public function next() { return $this->cursor->next(); }
/** * next. */ public function next() { $this->logQuery(); return parent::next(); }
/** * Iterator::next */ public function next() { $this->myResultCursor->next(); }
/** * Iterator next method (used in foreach) * */ public function next() { ++$this->position; $this->cursor->next(); }
public function next() { return parent::next(); }
/** * 游标下一条记录 * @return null */ public function next() { return $this->oMongoCursor->next(); }