Method |
Description |
|
__construct ( string $entityClass, array $items ) |
|
|
all ( ) : array |
Convert the cursor instance to an array of Items. |
|
count ( ) : integer |
Counts the number of results for this cursor. |
|
current ( ) : mixed |
Iterator interface current. Return a model object
with cursor document. (used in foreach). |
|
first ( ) : mixed |
Returns the first element of the cursor. |
|
key ( ) : integer |
Iterator key method (used in foreach). |
|
limit ( integer $amount ) : EmbeddedCursor |
Limits the number of results returned. |
|
next ( ) : void |
Iterator next method (used in foreach). |
|
rewind ( ) : void |
Iterator interface rewind (used in foreach). |
|
skip ( integer $amount ) : EmbeddedCursor |
Skips a number of results. |
|
sort ( array $fields ) : EmbeddedCursor |
Sorts the results by given fields. |
|
toArray ( ) : array |
Return the raw cursor items. |
|
valid ( ) : boolean |
Iterator valid method (used in foreach). |
|