MediaWiki master
SearchEngineFactory Class Reference

Factory class for SearchEngine. More...

Public Member Functions

 __construct (SearchEngineConfig $config, HookContainer $hookContainer, IConnectionProvider $dbProvider)
 
 create ( $type=null)
 Create SearchEngine of the given type.
 

Static Public Member Functions

static getSearchEngineClass (IConnectionProvider $dbProvider)
 

Detailed Description

Factory class for SearchEngine.

Allows to create engine of the specific type.

Definition at line 11 of file SearchEngineFactory.php.

Constructor & Destructor Documentation

◆ __construct()

SearchEngineFactory::__construct ( SearchEngineConfig $config,
HookContainer $hookContainer,
IConnectionProvider $dbProvider )
Parameters
SearchEngineConfig$config
HookContainer$hookContainer
IConnectionProvider$dbProvider

Definition at line 28 of file SearchEngineFactory.php.

Member Function Documentation

◆ create()

SearchEngineFactory::create ( $type = null)

Create SearchEngine of the given type.

Parameters
string | null$type
Returns
SearchEngine

Definition at line 44 of file SearchEngineFactory.php.

Referenced by MediaWiki\SpecialPage\SpecialPage\prefixSearchString().

◆ getSearchEngineClass()

static SearchEngineFactory::getSearchEngineClass ( IConnectionProvider $dbProvider)
static
Parameters
IConnectionProvider$dbProvider
Returns
string SearchEngine subclass name
Since
1.28

Definition at line 80 of file SearchEngineFactory.php.

References Wikimedia\Rdbms\IConnectionProvider\getReplicaDatabase().


The documentation for this class was generated from the following file: