trait ApplyQueryParametersTrait

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

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