Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Rdbms\RepoDomainDbFactory Class Reference
+ Collaboration diagram for Wikibase\Lib\Rdbms\RepoDomainDbFactory:

Public Member Functions

 __construct (ILBFactory $lbFactory, string $repoDomain, array $loadGroups=[])
 
 newRepoDb ()
 On a repo wiki, this creates a new RepoDomainDb for the local wiki, on a client it creates a RepoDomainDb for the configured Item and Property source (via EntitySources).
 
 newForEntitySource (DatabaseEntitySource $entitySource)
 

Private Member Functions

 newForDomain (string $domainId)
 

Private Attributes

string $repoDomain
 
ILBFactory $lbFactory
 
array $loadGroups
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Rdbms\RepoDomainDbFactory::__construct ( ILBFactory $lbFactory,
string $repoDomain,
array $loadGroups = [] )

Member Function Documentation

◆ newForDomain()

Wikibase\Lib\Rdbms\RepoDomainDbFactory::newForDomain ( string $domainId)
private

◆ newForEntitySource()

Wikibase\Lib\Rdbms\RepoDomainDbFactory::newForEntitySource ( DatabaseEntitySource $entitySource)

◆ newRepoDb()

Wikibase\Lib\Rdbms\RepoDomainDbFactory::newRepoDb ( )

On a repo wiki, this creates a new RepoDomainDb for the local wiki, on a client it creates a RepoDomainDb for the configured Item and Property source (via EntitySources).

Database operations related to entity data should not use this method in most cases and instead create a RepoDomainDb for the domain specified for the respective entity source.

Member Data Documentation

◆ $lbFactory

ILBFactory Wikibase\Lib\Rdbms\RepoDomainDbFactory::$lbFactory
private

◆ $loadGroups

array Wikibase\Lib\Rdbms\RepoDomainDbFactory::$loadGroups
private

◆ $repoDomain

string Wikibase\Lib\Rdbms\RepoDomainDbFactory::$repoDomain
private

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