MediaWiki
1.28.0
|
Factory class for SearchEngine. More...
Public Member Functions | |
__construct (SearchEngineConfig $config) | |
create ($type=null) | |
Create SearchEngine of the given type. More... | |
Static Public Member Functions | |
static | getSearchEngineClass (IDatabase $db) |
Private Attributes | |
SearchEngineConfig | $config |
Configuration for SearchEngine classes. More... | |
Factory class for SearchEngine.
Allows to create engine of the specific type.
Definition at line 7 of file SearchEngineFactory.php.
SearchEngineFactory::__construct | ( | SearchEngineConfig | $config | ) |
Definition at line 14 of file SearchEngineFactory.php.
References $config.
SearchEngineFactory::create | ( | $type = null | ) |
Create SearchEngine of the given type.
string | $type |
Definition at line 23 of file SearchEngineFactory.php.
References $dbr, $type, DB_REPLICA, and wfGetDB().
|
static |
IDatabase | $db |
Definition at line 47 of file SearchEngineFactory.php.
References IDatabase\getType().
Referenced by Database\getSearchEngine(), and SearchEngineTest\setUp().
|
private |
Configuration for SearchEngine classes.
Definition at line 12 of file SearchEngineFactory.php.
Referenced by __construct().