AbstractThe hardcoded English keyword(s) for this gambit, used as a canonical alias so that English always works regardless of the active locale. Defaults to key(), which is correct when the gambit is not translated. Override this in subclasses that translate key() via the translator.
The canonical English pattern for this gambit, used as an alias so that English always works regardless of the active locale. Implementations should derive this from canonicalKey() rather than key(). Optional, so gambits that implement this interface directly keep working.
Whether this gambit can be used by the actor.
AbstractfilterThis is the server standardised filter key for this gambit. The filter key must not be localized.
This is the method to transform a filter into a gambit format. The gambit format can be localized.
AbstractkeyThis is the regular expression pattern that will be used to match the gambit.
The pattern language can be localized. for example, the pattern for the
author gambit is author:(.+) in English, but auteur:(.+) in
French.
This returns information about how the gambit is structured for the UI. Use localized values.
This is the method to transform a gambit into a filter format.
Whether this gambit can use logical operators. For example, the tag gambit can be used as such:
tag:foo,bar tag:bazwhich translates to(foo OR bar) AND baz.The info allows generation of the correct filtering format, which would be
The backend filter must be able to handle this format. Checkout the TagGambit and TagFilter classes for an example.