PHP 클래스 yii\mongodb\file\Cursor

부터: 2.1
저자: Paul Klimov ([email protected])
상속: extends IteratorIterator, implements Countable
파일 보기 프로젝트 열기: yiisoft/yii2-mongodb

공개 프로퍼티들

프로퍼티 타입 설명
$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