class DiscussionSearcher extends AbstractSearcher

Methods

__construct(FilterManager $filters, array $mutators)

No description

search(SearchCriteria $criteria)

No description

getTotalResults(Builder $query)

No description

void
applySort(DatabaseSearchState $state, array|null $sort = null, bool $sortIsDefault = false)

No description

void
applyOffset(DatabaseSearchState $state, int $offset)

No description

void
applyLimit(DatabaseSearchState $state, int|null $limit)

No description

Builder
getQuery(User $actor)

No description

Details

__construct(FilterManager $filters, array $mutators)

Parameters

FilterManager $filters
array $mutators

Parameters

SearchCriteria $criteria

Return Value

SearchResults

protected Closure getTotalResults(Builder $query)

Parameters

Builder $query

Return Value

Closure

protected void applySort(DatabaseSearchState $state, array|null $sort = null, bool $sortIsDefault = false)

Parameters

DatabaseSearchState $state
array|null $sort
bool $sortIsDefault

Return Value

void

protected void applyOffset(DatabaseSearchState $state, int $offset)

Parameters

DatabaseSearchState $state
int $offset

Return Value

void

protected void applyLimit(DatabaseSearchState $state, int|null $limit)

Parameters

DatabaseSearchState $state
int|null $limit

Return Value

void

Builder getQuery(User $actor)

Parameters

User $actor

Return Value

Builder