class AuthorFilterGambit extends AbstractRegexGambit implements FilterInterface
Properties
| protected UserRepository | $users |
|
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 37
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 45
protected mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
at
line 29
__construct(UserRepository $users)
at
line 50
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
at
line 55
filter(FilterState $filterState, string $filterValue, bool $negate)
Filters a query.