43 private $engineMappings;
54 array $engineMappings,
58 $this->options = $options;
59 $this->language = $language;
60 $this->engineMappings = $engineMappings;
61 $this->hookRunner =
new HookRunner( $hookContainer );
62 $this->userOptionsLookup = $userOptionsLookup;
86 foreach ( $this->language->getNamespaces() as $ns => $name ) {
92 $this->hookRunner->onSearchableNamespaces( $arr );
106 if ( $this->userOptionsLookup->getOption( $user,
'searchNs' . $ns ) ) {
134 return $alternatives;
167 return $this->engineMappings;
178 $formatted = array_map( $this->language->getFormattedNsText( ... ), $namespaces );
179 foreach ( $formatted as $key => $ns ) {
181 $formatted[$key] =
wfMessage(
'blanknamespace' )->text();
189class_alias( SearchEngineConfig::class,
'SearchEngineConfig' );
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
A class containing constants representing the names of configuration variables.
const SearchTypeAlternatives
Name constant for the SearchTypeAlternatives setting, for use with Config::get()
const SearchType
Name constant for the SearchType setting, for use with Config::get()
const NamespacesToBeSearchedDefault
Name constant for the NamespacesToBeSearchedDefault setting, for use with Config::get()