class DatabaseSearchState extends SearchState
Properties
| protected FilterInterface[] | $activeFilters | from SearchState |
|
|
| protected Builder | $query |
|
Methods
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.
The active filters that decide which list this is, leaving out those that only pick a window of it (`WindowFilterInterface`) or narrow it (`RefineFilterInterface`). With none, the request is the unfiltered list, such as the All Discussions page.
Details
in SearchState
at
line 25
final
__construct( User $actor, bool $fulltextSearch, array| Closure $defaultSort = [])
in SearchState
at
line 43
User
getActor()
in SearchState
at
line 48
array| Closure
getDefaultSort()
in SearchState
at
line 57
void
setDefaultSort(array| Closure $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 SearchState
at
line 62
bool
isFulltextSearch()
in SearchState
at
line 75
array
getActiveFilters()
Get a list of the filters that are active.
To decide whether a request is the unfiltered list, such as the All Discussions page, use `getListFilters()` instead.
in SearchState
at
line 88
array
getListFilters()
The active filters that decide which list this is, leaving out those that only pick a window of it (`WindowFilterInterface`) or narrow it (`RefineFilterInterface`). With none, the request is the unfiltered list, such as the All Discussions page.