本文整理汇总了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();
}