abstract class AbstractSearcher

Traits

Properties

protected GambitManager $gambits
protected array $searchMutators

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(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(GambitManager $gambits, array $searchMutators)

Parameters

GambitManager $gambits
array $searchMutators

abstract protected Builder getQuery(User $actor)

Parameters

User $actor

Return Value

Builder

Parameters

QueryCriteria $criteria
int|null $limit
int $offset

Return Value

QueryResults

Exceptions

InvalidArgumentException