class DiscussionSearcher

Traits

Properties

protected GambitManager $gambits
protected DiscussionRepository $discussions
protected Dispatcher $events

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, DiscussionRepository $discussions, Dispatcher $events)

No description

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

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, DiscussionRepository $discussions, Dispatcher $events)

Parameters

GambitManager $gambits
DiscussionRepository $discussions
Dispatcher $events

Parameters

SearchCriteria $criteria
int|null $limit
int $offset

Return Value

SearchResults