MediaWiki
1.30.2
|
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 9 of file SearchEngineFactory.php.
SearchEngineFactory::__construct | ( | SearchEngineConfig | $config | ) |
Definition at line 16 of file SearchEngineFactory.php.
References $config.
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, getSearchEngineClass(), and wfGetDB().
|
static |
IDatabase | $db |
Definition at line 49 of file SearchEngineFactory.php.
References Wikimedia\Rdbms\IDatabase\getType().
Referenced by create(), and SearchEngineTest\setUp().
|
private |
Configuration for SearchEngine classes.
Definition at line 14 of file SearchEngineFactory.php.
Referenced by __construct().