class UserSearcher extends AbstractSearcher

Traits

Properties

protected GambitManager $gambits from AbstractSearcher
protected array $searchMutators from AbstractSearcher
protected Dispatcher $events
protected UserRepository $users

Methods

applySort(AbstractQueryState $query, array $sort = null)

Apply sort criteria to a discussion query.

applyOffset(AbstractQueryState $query, int $offset)

No description

applyLimit(AbstractQueryState $query, int|null $limit)

No description

__construct(UserRepository $users, Dispatcher $events, GambitManager $gambits, array $searchMutators)

No description

Builder
getQuery(User $actor)

No description

mutateSearch(SearchState $search, QueryCriteria $criteria) deprecated

No description

search(QueryCriteria $criteria, int|null $limit = null, int $offset = 0)

No description

Details

protected applySort(AbstractQueryState $query, array $sort = null)

Apply sort criteria to a discussion query.

Parameters

AbstractQueryState $query
array $sort

protected applyOffset(AbstractQueryState $query, int $offset)

Parameters

AbstractQueryState $query
int $offset

protected applyLimit(AbstractQueryState $query, int|null $limit)

Parameters

AbstractQueryState $query
int|null $limit

__construct(UserRepository $users, Dispatcher $events, GambitManager $gambits, array $searchMutators)

Parameters

UserRepository $users
Dispatcher $events
GambitManager $gambits
array $searchMutators

protected Builder getQuery(User $actor)

Parameters

User $actor

Return Value

Builder

protected mutateSearch(SearchState $search, QueryCriteria $criteria) deprecated

deprecated along with the Searching event, remove in Beta 17.

Parameters

SearchState $search
QueryCriteria $criteria

Parameters

QueryCriteria $criteria
int|null $limit
int $offset

Return Value

QueryResults

Exceptions

InvalidArgumentException