class UnreadFilter implements FilterInterface

Methods

__construct(DiscussionRepository $discussions)

No description

string
getFilterKey()

<p>This filter will only be run when a query contains a filter param with this key.</p>

void
filter(SearchState $state, string|array $value, bool $negate)

<p>Filters a query.</p>

void
constrain(Builder $query, User $actor, bool $negate)

No description

Details

__construct(DiscussionRepository $discussions)

Parameters

DiscussionRepository $discussions

string getFilterKey()

<p>This filter will only be run when a query contains a filter param with this key.</p>

Return Value

string

void filter(SearchState $state, string|array $value, bool $negate)

<p>Filters a query.</p>

Parameters

SearchState $state
string|array $value
bool $negate

Return Value

void

protected void constrain(Builder $query, User $actor, bool $negate)

Parameters

Builder $query
User $actor
bool $negate

Return Value

void