class AuthorFilterGambit extends AbstractRegexGambit implements FilterInterface
Traits
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.
array
asStringArray($filterValue, bool $multidimensional = false)
No description
from ValidateFilterTrait
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
Details
at
line 40
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 48
protected mixed
conditions(SearchState $search, array $matches, bool $negate)
Apply conditions to the search, given that the gambit was matched.
in ValidateFilterTrait
at
line 21
protected array
asStringArray($filterValue, bool $multidimensional = false)
in ValidateFilterTrait
at
line 43
protected string
asString($filterValue)
in ValidateFilterTrait
at
line 55
protected int
asInt($filterValue)
in ValidateFilterTrait
at
line 68
protected array
asIntArray($filterValue)
in ValidateFilterTrait
at
line 78
protected bool
asBool($filterValue)
at
line 32
__construct(UserRepository $users)
at
line 53
string
getFilterKey()
This filter will only be run when a query contains a filter param with this key.
at
line 58
filter(FilterState $filterState, string $filterValue, bool $negate)
Filters a query.