class QueryCriteria

Represents the criteria that will determine the entire result set of a query. The limit and offset are not included because they only determine which part of the entire result set will be returned.

Properties

User $actor The user performing the query.
array $query Query params.
array $sort An array of sort-order pairs, where the column is the key, and the order is the value. The order may be 'asc', 'desc', or an array of IDs to order by.
bool $sortIsDefault Is the sort for this request the default sort from the controller? If false, the current request specifies a sort.

Methods

__construct(User $actor, array $query, array $sort = null, bool $sortIsDefault = false)

No description

Details

__construct(User $actor, array $query, array $sort = null, bool $sortIsDefault = false)

Parameters

User $actor The user performing the query.
array $query The query params.
array $sort An array of sort-order pairs, where the column is the key, and the order is the value. The order may be 'asc', 'desc', or an array of IDs to order by.
bool $sortIsDefault