Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Rdbms\RepoDomainDbFactory Class Reference

Public Member Functions

 __construct (ILBFactory $lbFactory, $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

 $repoDomain
 
 $lbFactory
 
 $loadGroups
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Rdbms\RepoDomainDbFactory::__construct ( ILBFactory $lbFactory,
$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

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

◆ $loadGroups

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

◆ $repoDomain

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

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