PHP 클래스 LMongo\Query\Cursor

상속: implements Countabl\Countable, implements IteratorAggregat\IteratorAggregate
파일 보기 프로젝트 열기: navruzm/lmongo

보호된 프로퍼티들

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