Property | Type | Description | |
---|---|---|---|
$limit | |||
$orderBy | |||
$predicate | |||
$repo |
Method | Description | |
---|---|---|
__construct ( |
Constructor | |
getFieldValue ( $doc, $field, &$found = false ) | ||
matchDocument ( $doc, $field, $operator, $value ) | ||
run ( ) : |
Runs the query. |
Method | Description | |
---|---|---|
filter ( $documents, $predicates ) | ||
sort ( array $array, array $args ) : array | Sorts an array of documents by multiple fields if needed. |
public __construct ( |
||
$repo | The repo to execute against | |
$pred | The predicate to use. | |
$limit | array | The count and offset. |
$orderBy | array | An array of field names to order by |
public run ( ) : |
||
return | The documents returned from this query. |