MediaWiki REL1_31
ExternalStoreFactory Class Reference

Public Member Functions

 __construct (array $externalStores)
 
 getStoreObject ( $proto, array $params=[])
 Get an external store object of the given type, with the given parameters.
 

Private Attributes

array $externalStores
 

Detailed Description

Definition at line 9 of file ExternalStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ExternalStoreFactory::__construct ( array  $externalStores)
Parameters
array$externalStoresSee $wgExternalStores

Definition at line 19 of file ExternalStoreFactory.php.

References $externalStores.

Member Function Documentation

◆ getStoreObject()

ExternalStoreFactory::getStoreObject (   $proto,
array  $params = [] 
)

Get an external store object of the given type, with the given parameters.

Parameters
string$protoType of external storage, should be a value in $wgExternalStores
array$paramsAssociative array of ExternalStoreMedium parameters
Returns
ExternalStoreMedium|bool The store class or false on error

Definition at line 30 of file ExternalStoreFactory.php.

References $params.

Member Data Documentation

◆ $externalStores

array ExternalStoreFactory::$externalStores
private

Definition at line 14 of file ExternalStoreFactory.php.

Referenced by __construct().


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