MongoCursor::getNext PHP Method

getNext() public method

Advances the cursor to the next result, and returns that result
public getNext ( ) : array
return array Returns the next object
    public function getNext()
    {
        return $this->next();
    }

Usage Example

コード例 #1
0
ファイル: Cursor.php プロジェクト: rogerthomas84/ohdm
 /**
  * Retrieve the collection object (as provided by x::find())
  * @return Collection
  */
 public function getNext()
 {
     $item = $this->cursor->getNext();
     $obj = clone $this->collection;
     $obj->populate($item);
     return $obj;
 }
All Usage Examples Of MongoCursor::getNext