class UnreadFilterGambit extends AbstractRegexGambit implements FilterInterface
Properties
| protected DiscussionRepository | $discussions |
|
Methods
bool
apply(SearchState $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
from AbstractRegexGambit
mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
Details
at
line 38
getGambitPattern()
The regex pattern to match the bit against.
in AbstractRegexGambit
at
line 22
bool
apply(SearchState $search, string $bit)
Apply conditions to the searcher for a bit of the search string.
in AbstractRegexGambit
at
line 39
protected array|null
match(string $bit)
Match the bit against this gambit.
at
line 46
protected mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
at
line 30
__construct(DiscussionRepository $discussions)
at
line 51
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
at
line 56
filter(FilterState $filterState, string $filterValue, bool $negate)
Filters a query.