PHP Класс LMongo\Query\Cursor

Наследование: implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$cursor MongoCursor Instance of MongoCursor

Открытые методы

Метод Описание
__call ( string $method, array $arguments ) : mixed Route the original MongoCursor method
__construct ( MongoCursor $cursor ) Constructor, sets the cursor
__toString ( ) : string Convert the cursor to string.
count ( ) : integer Implement Countable
countAll ( ) : integer Counts all query results
getCursor ( ) : MongoCursor Return the MongoCursor instance
getIterator ( ) : Iterator Implement IteratorAggregate
toArray ( ) : array Get the items as array.
toJson ( integer $options ) : string Get the items as JSON.
toObject ( ) : object Get the items as an object.

Описание методов

__call() публичный Метод

Route the original MongoCursor method
public __call ( string $method, array $arguments ) : mixed
$method string
$arguments array
Результат mixed

__construct() публичный Метод

Constructor, sets the cursor
public __construct ( MongoCursor $cursor )
$cursor MongoCursor

__toString() публичный Метод

Convert the cursor to string.
public __toString ( ) : string
Результат string

count() публичный Метод

Implement Countable
public count ( ) : integer
Результат integer

countAll() публичный Метод

Counts all query results
public countAll ( ) : integer
Результат integer

getCursor() публичный Метод

Return the MongoCursor instance
public getCursor ( ) : MongoCursor
Результат MongoCursor

getIterator() публичный Метод

Implement IteratorAggregate
public getIterator ( ) : Iterator
Результат Iterator

toArray() публичный Метод

Get the items as array.
public toArray ( ) : array
Результат array

toJson() публичный Метод

Get the items as JSON.
public toJson ( integer $options ) : string
$options integer
Результат string

toObject() публичный Метод

Get the items as an object.
public toObject ( ) : object
Результат object

Описание свойств

$cursor защищенное свойство

Instance of MongoCursor
protected MongoCursor $cursor
Результат MongoCursor