PHP 클래스 MongoLite\Cursor

상속: implements Iterator, implements Countable
파일 보기 프로젝트 열기: sjardim/Hugopit

보호된 프로퍼티들

프로퍼티 타입 설명
$collection object
$criteria string | null
$data array
$limit null | integer
$position boolean | integer
$projection array | null
$skip null | integer
$sort null | array

공개 메소드들

메소드 설명
__construct ( object $collection, mixed $criteria, $projection = null ) Constructor
count ( ) : integer Documents count
current ( )
each ( mixed $callable ) : object Loop through result set
key ( )
limit ( mixed $limit ) : object Set limit
next ( )
rewind ( ) Iterator implementation
skip ( mixed $skip ) : object Set skip
sort ( mixed $sorts ) : object Set sort
toArray ( ) : array Get documents matching criteria
valid ( )

보호된 메소드들

메소드 설명
getData ( ) : array Get documents matching criteria

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( object $collection, mixed $criteria, $projection = null )
$collection object
$criteria mixed

count() 공개 메소드

Documents count
public count ( ) : integer
리턴 integer

current() 공개 메소드

public current ( )

each() 공개 메소드

Loop through result set
public each ( mixed $callable ) : object
$callable mixed
리턴 object

getData() 보호된 메소드

Get documents matching criteria
protected getData ( ) : array
리턴 array

key() 공개 메소드

public key ( )

limit() 공개 메소드

Set limit
public limit ( mixed $limit ) : object
$limit mixed
리턴 object Cursor

next() 공개 메소드

public next ( )

rewind() 공개 메소드

Iterator implementation
public rewind ( )

skip() 공개 메소드

Set skip
public skip ( mixed $skip ) : object
$skip mixed
리턴 object Cursor

sort() 공개 메소드

Set sort
public sort ( mixed $sorts ) : object
$sorts mixed
리턴 object Cursor

toArray() 공개 메소드

Get documents matching criteria
public toArray ( ) : array
리턴 array

valid() 공개 메소드

public valid ( )

프로퍼티 상세

$collection 보호되어 있는 프로퍼티

object
protected $collection

$criteria 보호되어 있는 프로퍼티

protected string|null $criteria
리턴 string | null

$data 보호되어 있는 프로퍼티

protected array $data
리턴 array

$limit 보호되어 있는 프로퍼티

protected null|int $limit
리턴 null | integer

$position 보호되어 있는 프로퍼티

protected bool|int $position
리턴 boolean | integer

$projection 보호되어 있는 프로퍼티

protected array|null $projection
리턴 array | null

$skip 보호되어 있는 프로퍼티

protected null|int $skip
리턴 null | integer

$sort 보호되어 있는 프로퍼티

protected null|array $sort
리턴 null | array