class UserSearch extends AbstractSearch
Properties
protected Builder | $query | from AbstractSearch |
|
|
protected User | $actor | from AbstractSearch |
|
|
protected array | $defaultSort | from AbstractSearch |
|
|
protected GambitInterface[] | $activeGambits | from AbstractSearch |
|
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 AbstractSearch
GambitInterface[]
getActiveGambits()
Get a list of the gambits that are active in this search.
from AbstractSearch
void
from AbstractSearch
Details
in AbstractSearch
at
line 46
__construct(Builder $query, User $actor)
in AbstractSearch
at
line 57
Builder
getQuery()
Get the query builder for the search results query.
in AbstractSearch
at
line 67
User
getActor()
Get the user who is performing the search.
in AbstractSearch
at
line 77
array
getDefaultSort()
Get the default sort order for the search.
in AbstractSearch
at
line 91
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.
in AbstractSearch
at
line 101
GambitInterface[]
getActiveGambits()
Get a list of the gambits that are active in this search.
in AbstractSearch
at
line 112
void
addActiveGambit(GambitInterface $gambit)
Add a gambit as being active in this search.