PHP Класс yii\mongodb\file\Cursor

С версии: 2.1
Автор: Paul Klimov ([email protected])
Наследование: extends IteratorIterator, implements Countable
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$collection related GridFS collection instance.

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

Метод Описание
__call ( string $name, array $arguments ) : mixed PHP magic method, which is invoked on attempt of invocation not existing method.
__construct ( Collection $collection, MongoDB\Driver\Cursor $cursor ) Constructor.
__get ( string $name ) : mixed PHP magic method, which is invoked on attempt of getting not existing property.
__isset ( string $name ) : boolean PHP magic method, which is invoked on attempt of checking if a property is set.
__set ( string $name, mixed $value ) PHP magic method, which is invoked on attempt of setting not existing property.
__unset ( string $name ) PHP magic method, which is invoked on attempt of unsetting of property.
count ( ) : integer Count elements of this cursor.
current ( ) : mixed Return the current element This method is required by the interface [[\Iterator]].
getId ( ) : MongoDB\Driver\CursorId Returns the ID for this cursor.
setTypeMap ( array $typemap ) Sets a type map to use for BSON unserialization.
toArray ( ) : array Returns an array containing all results for this cursor

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

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

It redirects method call to inner iterator.
public __call ( string $name, array $arguments ) : mixed
$name string method name.
$arguments array method arguments
Результат mixed method result.

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

Constructor.
public __construct ( Collection $collection, MongoDB\Driver\Cursor $cursor )
$collection Collection
$cursor MongoDB\Driver\Cursor

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

It returns value from the inner iterator.
public __get ( string $name ) : mixed
$name string field name.
Результат mixed field value.

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

PHP magic method, which is invoked on attempt of checking if a property is set.
public __isset ( string $name ) : boolean
$name string field name.
Результат boolean whether field exists or not.

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

It passes value to the inner iterator.
public __set ( string $name, mixed $value )
$name string field name.
$value mixed field value.

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

PHP magic method, which is invoked on attempt of unsetting of property.
public __unset ( string $name )
$name string field name.

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

This method is required by the interface [[\Countable]].
public count ( ) : integer
Результат integer elements count.

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

Return the current element This method is required by the interface [[\Iterator]].
public current ( ) : mixed
Результат mixed current row

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

Returns the ID for this cursor.
public getId ( ) : MongoDB\Driver\CursorId
Результат MongoDB\Driver\CursorId cursor ID.

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

Sets a type map to use for BSON unserialization.
public setTypeMap ( array $typemap )
$typemap array type map.

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

Returns an array containing all results for this cursor
public toArray ( ) : array
Результат array containing all results for this cursor.

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

$collection публичное свойство

related GridFS collection instance.
public $collection