class DatabaseSearchState extends SearchState
Properties
protected FilterInterface[] | $activeFilters | from SearchState | ||
protected | $query |
Methods
from SearchState
void
setDefaultSort(array|Closure $defaultSort)
<p>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.</p>
from SearchState
Details
in SearchState
at
line 23
final
__construct(User $actor, bool $fulltextSearch, array|Closure $defaultSort = [])
in SearchState
at
line 41
User
getActor()
in SearchState
at
line 46
array|Closure
getDefaultSort()
in SearchState
at
line 55
void
setDefaultSort(array|Closure $defaultSort)
<p>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.</p>
in SearchState
at
line 60
bool
isFulltextSearch()
in SearchState
at
line 70
array
getActiveFilters()
<p>Get a list of the filters that are active.</p>