class AbstractSearch extends FilterState
deprecated
Properties
protected Builder | $query | from FilterState |
|
|
protected User | $actor | from FilterState |
|
|
protected mixed | $defaultSort | from FilterState |
|
|
protected GambitInterface[] | $activeGambits |
|
Methods
mixed
setDefaultSort(mixed $defaultSort)
Set the default sort order for the search. This will only be applied if a sort order has not been specified in the search criteria.
from FilterState
Details
in FilterState
at
line 36
__construct(Builder $query, User $actor, $defaultSort = [])
in FilterState
at
line 48
Builder
getQuery()
Get the query builder for the search results query.
in FilterState
at
line 58
User
getActor()
Get the user who is performing the search.
in FilterState
at
line 68
array
getDefaultSort()
Get the default sort order for the search.
in FilterState
at
line 83
mixed
setDefaultSort(mixed $defaultSort)
Set the default sort order for the search. This will only be applied if a sort order has not been specified in the search criteria.
at
line 30
GambitInterface[]
getActiveGambits()
Get a list of the gambits that are active in this search.
at
line 41
void
addActiveGambit(GambitInterface $gambit)
Add a gambit as being active in this search.