MediaWiki  master
MediaWiki\Storage\BlobStoreFactory Class Reference

Service for instantiating BlobStores. More...

Collaboration diagram for MediaWiki\Storage\BlobStoreFactory:

Public Member Functions

 __construct (ILBFactory $lbFactory, ExternalStoreAccess $extStoreAccess, WANObjectCache $cache, ServiceOptions $options, Language $contLang)
 
 newBlobStore ( $dbDomain=false)
 
 newSqlBlobStore ( $dbDomain=false)
 

Static Public Attributes

static array $constructorOptions
 TODO Make this a const when HHVM support is dropped (T192166) More...
 

Private Attributes

WANObjectCache $cache
 
Language $contLang
 
ExternalStoreAccess $extStoreAccess
 
ILBFactory $lbFactory
 
ServiceOptions $options
 

Detailed Description

Service for instantiating BlobStores.

This can be used to create BlobStore objects for other wikis.

Since
1.31

Definition at line 36 of file BlobStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ newBlobStore()

MediaWiki\Storage\BlobStoreFactory::newBlobStore (   $dbDomain = false)
Since
1.31
Parameters
bool | string$dbDomainThe ID of the target wiki database. Use false for the local wiki.
Returns
BlobStore

Definition at line 99 of file BlobStoreFactory.php.

References MediaWiki\Storage\BlobStoreFactory\newSqlBlobStore().

◆ newSqlBlobStore()

MediaWiki\Storage\BlobStoreFactory::newSqlBlobStore (   $dbDomain = false)

Member Data Documentation

◆ $cache

WANObjectCache MediaWiki\Storage\BlobStoreFactory::$cache
private

Definition at line 51 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().

◆ $constructorOptions

array MediaWiki\Storage\BlobStoreFactory::$constructorOptions
static
Initial value:
= [
'CompressRevisions',
'DefaultExternalStore',
'LegacyEncoding',
'RevisionCacheExpiry',
]

TODO Make this a const when HHVM support is dropped (T192166)

Since
1.34

Definition at line 69 of file BlobStoreFactory.php.

◆ $contLang

Language MediaWiki\Storage\BlobStoreFactory::$contLang
private

◆ $extStoreAccess

ExternalStoreAccess MediaWiki\Storage\BlobStoreFactory::$extStoreAccess
private

Definition at line 46 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().

◆ $lbFactory

ILBFactory MediaWiki\Storage\BlobStoreFactory::$lbFactory
private

Definition at line 41 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().

◆ $options

ServiceOptions MediaWiki\Storage\BlobStoreFactory::$options
private

Definition at line 56 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().


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