MediaWiki REL1_27
SearchEngineFactory Class Reference

Factory class for SearchEngine. More...

Collaboration diagram for SearchEngineFactory:

Public Member Functions

 __construct (SearchEngineConfig $config)
 
 create ( $type=null)
 Create SearchEngine of the given type.
 

Private Attributes

SearchEngineConfig $config
 Configuration for SearchEngine classes.
 

Detailed Description

Factory class for SearchEngine.

Allows to create engine of the specific type.

Definition at line 7 of file SearchEngineFactory.php.

Constructor & Destructor Documentation

◆ __construct()

SearchEngineFactory::__construct ( SearchEngineConfig  $config)

Definition at line 15 of file SearchEngineFactory.php.

Member Function Documentation

◆ create()

SearchEngineFactory::create (   $type = null)

Create SearchEngine of the given type.

Parameters
string$type
Returns
SearchEngine

Definition at line 24 of file SearchEngineFactory.php.

References $dbr, $type, DB_SLAVE, and wfGetDB().

Member Data Documentation

◆ $config

SearchEngineConfig SearchEngineFactory::$config
private

Configuration for SearchEngine classes.

Definition at line 13 of file SearchEngineFactory.php.


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