MediaWiki master
MediaWiki\Storage\BlobStoreFactory Class Reference

Service for instantiating BlobStores. More...

Public Member Functions

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

Public Attributes

const CONSTRUCTOR_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()

MediaWiki\Storage\BlobStoreFactory::__construct ( ILBFactory $lbFactory,
ExternalStoreAccess $extStoreAccess,
WANObjectCache $cache,
ServiceOptions $options )

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 89 of file BlobStoreFactory.php.

References MediaWiki\Storage\BlobStoreFactory\newSqlBlobStore().

◆ newSqlBlobStore()

MediaWiki\Storage\BlobStoreFactory::newSqlBlobStore ( $dbDomain = false)
Access: internal
Please call newBlobStore and use the BlobStore interface.
Parameters
bool | string$dbDomainThe ID of the target wiki database. Use false for the local wiki.
Returns
SqlBlobStore

Definition at line 100 of file BlobStoreFactory.php.

References MediaWiki\MainConfigNames\CompressRevisions, MediaWiki\MainConfigNames\DefaultExternalStore, MediaWiki\MainConfigNames\LegacyEncoding, and MediaWiki\MainConfigNames\RevisionCacheExpiry.

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

Member Data Documentation

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\Storage\BlobStoreFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
]
const RevisionCacheExpiry
Name constant for the RevisionCacheExpiry setting, for use with Config::get()
const LegacyEncoding
Name constant for the LegacyEncoding setting, for use with Config::get()
const DefaultExternalStore
Name constant for the DefaultExternalStore setting, for use with Config::get()
const CompressRevisions
Name constant for the CompressRevisions setting, for use with Config::get()
Access: internal
For use by ServiceWiring

Definition at line 61 of file BlobStoreFactory.php.


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