CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Overrider that gets its name using an entry in a Config object. More...
Public Member Functions | |
__construct (Config $config, $configEntry, $priority=SearchProfileOverride::CONFIG_PRIO) | |
getOverriddenName (array $contextParams) | |
Get the overridden name or null if it cannot be overridden. | |
priority () | |
The priority of this override, lower wins. | |
explain () | |
Additional Inherited Members | |
Public Attributes inherited from CirrusSearch\Profile\SearchProfileOverride | |
const | URI_PARAM_PRIO = 100 |
Default priority for uri param overrides. | |
const | USER_PREF_PRIO = 200 |
Default priority for user pref overrides. | |
const | CONTEXTUAL_PRIO = 300 |
Default priority for contextual overrides. | |
const | CONFIG_PRIO = 400 |
Default priority for config overrides. | |
Overrider that gets its name using an entry in a Config object.
CirrusSearch\Profile\ConfigSearchProfileOverride::__construct | ( | Config | $config, |
$configEntry, | |||
$priority = SearchProfileOverride::CONFIG_PRIO ) |
Config | $config | |
string | $configEntry | the name of the config entry holding the name of the overridden profile |
int | $priority |
CirrusSearch\Profile\ConfigSearchProfileOverride::explain | ( | ) |
Implements CirrusSearch\Profile\SearchProfileOverride.
CirrusSearch\Profile\ConfigSearchProfileOverride::getOverriddenName | ( | array | $contextParams | ) |
Get the overridden name or null if it cannot be overridden.
string[] | $contextParams |
Implements CirrusSearch\Profile\SearchProfileOverride.
CirrusSearch\Profile\ConfigSearchProfileOverride::priority | ( | ) |
The priority of this override, lower wins.
Implements CirrusSearch\Profile\SearchProfileOverride.