class UserSearcher

Takes a UserSearchCriteria object, performs a search using gambits, and spits out a UserSearchResults object.

Traits

Properties

protected GambitManager $gambits
protected UserRepository $users

Methods

applySort(AbstractSearch $search, array $sort = null)

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

applyOffset(AbstractSearch $search, int $offset)

No description

applyLimit(AbstractSearch $search, int|null $limit)

No description

__construct(GambitManager $gambits, UserRepository $users)

No description

search(SearchCriteria $criteria, int|null $limit = null, int $offset = 0, array $load = [])

No description

Details

protected applySort(AbstractSearch $search, array $sort = null)

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

Parameters

AbstractSearch $search
array $sort

protected applyOffset(AbstractSearch $search, int $offset)

Parameters

AbstractSearch $search
int $offset

protected applyLimit(AbstractSearch $search, int|null $limit)

Parameters

AbstractSearch $search
int|null $limit

__construct(GambitManager $gambits, UserRepository $users)

Parameters

GambitManager $gambits
UserRepository $users

Parameters

SearchCriteria $criteria
int|null $limit
int $offset
array $load <p>An array of relationships to load on the results.</p>

Return Value

SearchResults