class SearchState

Properties

protected FilterInterface[] $activeFilters

Methods

__construct(User $actor, bool $fulltextSearch, array|Closure $defaultSort = [])

No description

getActor()

No description

array|Closure
getDefaultSort()

No description

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>

bool
isFulltextSearch()

No description

array
getActiveFilters()

<p>Get a list of the filters that are active.</p>

void
addActiveFilter(FilterInterface $filter)

No description

Details

final __construct(User $actor, bool $fulltextSearch, array|Closure $defaultSort = [])

Parameters

User $actor
bool $fulltextSearch
array|Closure $defaultSort

User getActor()

Return Value

User

array|Closure getDefaultSort()

Return Value

array|Closure

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>

Parameters

array|Closure $defaultSort

Return Value

void

bool isFulltextSearch()

Return Value

bool

array getActiveFilters()

<p>Get a list of the filters that are active.</p>

Return Value

array

void addActiveFilter(FilterInterface $filter)

Parameters

FilterInterface $filter

Return Value

void