Свойство | Тип | Описание | |
---|---|---|---|
$limit | |||
$orderBy | |||
$predicate | |||
$repo |
Метод | Описание | |
---|---|---|
__construct ( |
Constructor | |
getFieldValue ( $doc, $field, &$found = false ) | ||
matchDocument ( $doc, $field, $operator, $value ) | ||
run ( ) : |
Runs the query. |
Метод | Описание | |
---|---|---|
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 ( ) : |
||
Результат | The documents returned from this query. |