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, bool $sortIsDefault = false)

<p>Apply sort criteria to a discussion query.</p>

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

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

No description

Details

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

<p>Apply sort criteria to a discussion query.</p>

Parameters

AbstractQueryState $query
array $sort
bool $sortIsDefault

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

Parameters

QueryCriteria $criteria
int|null $limit
int $offset

Return Value

QueryResults