MediaWiki master
MediaWiki\Revision\RevisionStoreFactory Class Reference

Factory service for RevisionStore instances. More...

Public Member Functions

 __construct (ILBFactory $dbLoadBalancerFactory, BlobStoreFactory $blobStoreFactory, NameTableStoreFactory $nameTables, SlotRoleRegistry $slotRoleRegistry, WANObjectCache $cache, BagOStuff $localCache, CommentStore $commentStore, ActorStoreFactory $actorStoreFactory, LoggerInterface $logger, IContentHandlerFactory $contentHandlerFactory, PageStoreFactory $pageStoreFactory, TitleFactory $titleFactory, HookContainer $hookContainer)
 
 getRevisionStore ( $dbDomain=false)
 
 getRevisionStoreForImport ( $dbDomain=false)
 
 getRevisionStoreForUndelete ( $dbDomain=false)
 

Detailed Description

Factory service for RevisionStore instances.

This allows RevisionStores to be created for cross-wiki access.

Warning
Beware compatibility issues with schema migration in the context of cross-wiki access! This class assumes that all wikis are at compatible migration stages for all relevant schemas. Relevant schemas are: revision storage (MCR), the revision comment table, and the actor table. Migration stages are compatible as long as a) there are no wikis in the cluster that only write the old schema or b) there are no wikis that read only the new schema.
Since
1.32

Definition at line 56 of file RevisionStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Revision\RevisionStoreFactory::__construct ( ILBFactory $dbLoadBalancerFactory,
BlobStoreFactory $blobStoreFactory,
NameTableStoreFactory $nameTables,
SlotRoleRegistry $slotRoleRegistry,
WANObjectCache $cache,
BagOStuff $localCache,
CommentStore $commentStore,
ActorStoreFactory $actorStoreFactory,
LoggerInterface $logger,
IContentHandlerFactory $contentHandlerFactory,
PageStoreFactory $pageStoreFactory,
TitleFactory $titleFactory,
HookContainer $hookContainer )
Parameters
ILBFactory$dbLoadBalancerFactory
BlobStoreFactory$blobStoreFactory
NameTableStoreFactory$nameTables
SlotRoleRegistry$slotRoleRegistry
WANObjectCache$cache
BagOStuff$localCache
CommentStore$commentStore
ActorStoreFactory$actorStoreFactory
LoggerInterface$logger
IContentHandlerFactory$contentHandlerFactory
PageStoreFactory$pageStoreFactory
TitleFactory$titleFactory
HookContainer$hookContainer

Definition at line 106 of file RevisionStoreFactory.php.

Member Function Documentation

◆ getRevisionStore()

MediaWiki\Revision\RevisionStoreFactory::getRevisionStore ( $dbDomain = false)
Since
1.32
Parameters
false | string$dbDomainDB domain of the relevant wiki or false for the current one
Returns
RevisionStore for the given wikiId with all necessary services

Definition at line 143 of file RevisionStoreFactory.php.

◆ getRevisionStoreForImport()

MediaWiki\Revision\RevisionStoreFactory::getRevisionStoreForImport ( $dbDomain = false)
Since
1.42
Parameters
false | string$dbDomainDB domain of the relevant wiki or false for the current one
Returns
RevisionStore for the given wikiId with all necessary services

Definition at line 157 of file RevisionStoreFactory.php.

◆ getRevisionStoreForUndelete()

MediaWiki\Revision\RevisionStoreFactory::getRevisionStoreForUndelete ( $dbDomain = false)
Since
1.43
Parameters
false | string$dbDomainDB domain of the relevant wiki or false for the current one
Returns
RevisionStore for the given wikiId with all necessary services

Definition at line 171 of file RevisionStoreFactory.php.


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