MediaWiki  master
SearchEngineFactory Class Reference

Factory class for SearchEngine. More...

Public Member Functions

 __construct (SearchEngineConfig $config, HookContainer $hookContainer, ILoadBalancer $loadBalancer)
 
 create ( $type=null)
 Create SearchEngine of the given type. More...
 

Static Public Member Functions

static getSearchEngineClass ( $dbOrLb)
 

Detailed Description

Factory class for SearchEngine.

Allows to create engine of the specific type.

Definition at line 12 of file SearchEngineFactory.php.

Constructor & Destructor Documentation

◆ __construct()

SearchEngineFactory::__construct ( SearchEngineConfig  $config,
HookContainer  $hookContainer,
ILoadBalancer  $loadBalancer 
)
Parameters
SearchEngineConfig$config
HookContainer$hookContainer
ILoadBalancer$loadBalancer

Definition at line 30 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 46 of file SearchEngineFactory.php.

References $args, $type, and getSearchEngineClass().

◆ getSearchEngineClass()

static SearchEngineFactory::getSearchEngineClass (   $dbOrLb)
static
Parameters
IDatabase | ILoadBalancer$dbOrLb
Returns
string SearchEngine subclass name
Since
1.28

Definition at line 82 of file SearchEngineFactory.php.

References $type.

Referenced by create().


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