MediaWiki REL1_31
|
Factory class for SearchEngine. More...
Public Member Functions | |
__construct (SearchEngineConfig $config) | |
create ( $type=null) | |
Create SearchEngine of the given type. | |
Static Public Member Functions | |
static | getSearchEngineClass (IDatabase $db) |
Private Attributes | |
SearchEngineConfig | $config |
Configuration for SearchEngine classes. | |
Factory class for SearchEngine.
Allows to create engine of the specific type.
Definition at line 9 of file SearchEngineFactory.php.
SearchEngineFactory::__construct | ( | SearchEngineConfig | $config | ) |
Definition at line 16 of file SearchEngineFactory.php.
SearchEngineFactory::create | ( | $type = null | ) |
Create SearchEngine of the given type.
string | $type |
Definition at line 25 of file SearchEngineFactory.php.
References $dbr, $type, DB_REPLICA, and wfGetDB().
|
static |
IDatabase | $db |
Definition at line 49 of file SearchEngineFactory.php.
References Wikimedia\Rdbms\IDatabase\getType().
|
private |
Configuration for SearchEngine classes.
Definition at line 14 of file SearchEngineFactory.php.