本文整理匯總了PHP中MongoCursor::next方法的典型用法代碼示例。如果您正苦於以下問題:PHP MongoCursor::next方法的具體用法?PHP MongoCursor::next怎麽用?PHP MongoCursor::next使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MongoCursor
的用法示例。
在下文中一共展示了MongoCursor::next方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: next
/**
* Next
*
* @return mixed
*/
public function next()
{
$this->resource->next();
$this->currentData = $this->resource->current();
$this->currentComplete = true;
$this->position++;
return $this->currentData;
}
示例2: row
/**
* 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;
}
示例3: next
/**
* Iterator: next
*/
public function next()
{
$this->_cursor->next();
}
示例4: next
/**
* {@inheritdoc}
*/
public function next()
{
$this->mongoCursor->next();
}
示例5: getNext
/**
* 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();
}
示例6: next
/**
* Advances the pointer
*
* @return void
*/
public function next()
{
return $this->cursor->next();
}
示例7: next
/**
* next.
*/
public function next()
{
$this->logQuery();
return parent::next();
}
示例8: next
/**
* Iterator::next
*/
public function next()
{
$this->myResultCursor->next();
}
示例9: next
/**
* Iterator next method (used in foreach)
*
*/
public function next()
{
++$this->position;
$this->cursor->next();
}
示例10: next
public function next()
{
return parent::next();
}
示例11: next
/**
* 遊標下一條記錄
* @return null
*/
public function next()
{
return $this->oMongoCursor->next();
}