Wikibase
MediaWiki Wikibase extension
Wikibase\Client\Store\Sql\DirectSqlStore Class Reference

Implementation of the client store interface using direct access to the repository's database via MediaWiki's foreign wiki mechanism as implemented by LBFactoryMulti. More...

+ Inheritance diagram for Wikibase\Client\Store\Sql\DirectSqlStore:
+ Collaboration diagram for Wikibase\Client\Store\Sql\DirectSqlStore:

Public Member Functions

 __construct (EntityChangeFactory $entityChangeFactory, EntityIdParser $entityIdParser, EntityIdComposer $entityIdComposer, EntityIdLookup $entityIdLookup, EntityNamespaceLookup $entityNamespaceLookup, WikibaseServices $wikibaseServices, SettingsArray $settings, $repoWiki, $languageCode)
 
 getSubscriptionManager ()
 
 getRecentChangesFinder ()
 
 getUsageLookup ()
 
 getUsageTracker ()
 
 getSiteLinkLookup ()
 
 getEntityLookup ()
 
 getEntityRevisionLookup ()
 
 getEntityIdLookup ()
 
 getPropertyInfoLookup ()
 
 getEntityPrefetcher ()
 
 getUsageUpdater ()
 
 getEntityChangeLookup ()
 

Private Member Functions

 getRepoConnectionManager ()
 Returns a LoadBalancer that acts as a factory for connections to the repo wiki's database. More...
 
 getLocalConnectionManager ()
 Returns a LoadBalancer that acts as a factory for connections to the local (client) wiki's database. More...
 
 newEntityRevisionLookup ()
 

Private Attributes

 $entityChangeFactory
 
 $entityIdParser
 
 $entityIdComposer
 
 $repoWiki
 
 $repoConnectionManager = null
 
 $localConnectionManager = null
 
 $languageCode
 
 $cacheKeyPrefix
 
 $cacheKeyGroup
 
 $cacheType
 
 $cacheDuration
 
 $entityRevisionLookup = null
 
 $wikibaseServices = null
 
 $entityIdLookup
 
 $entityNamespaceLookup = null
 
 $propertyInfoLookup = null
 
 $siteLinkLookup = null
 
 $usageTracker = null
 
 $usageLookup = null
 
 $subscriptionManager = null
 
 $siteId
 
 $disabledUsageAspects
 
 $entityUsagePerPageLimit
 
 $addEntityUsagesBatchSize
 
 $enableImplicitDescriptionUsage
 
 $allowLocalShortDesc
 

Detailed Description

Implementation of the client store interface using direct access to the repository's database via MediaWiki's foreign wiki mechanism as implemented by LBFactoryMulti.

Author
Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Client\Store\Sql\DirectSqlStore::__construct ( EntityChangeFactory  $entityChangeFactory,
EntityIdParser  $entityIdParser,
EntityIdComposer  $entityIdComposer,
EntityIdLookup  $entityIdLookup,
EntityNamespaceLookup  $entityNamespaceLookup,
WikibaseServices  $wikibaseServices,
SettingsArray  $settings,
  $repoWiki,
  $languageCode 
)
Parameters
EntityChangeFactory$entityChangeFactory
EntityIdParser$entityIdParser
EntityIdComposer$entityIdComposer
EntityNamespaceLookup$entityNamespaceLookup
WikibaseServices$wikibaseServices
SettingsArray$settings
string | bool$repoWikiThe symbolic database name of the repo wiki or false for the local wiki.
string$languageCode

Member Function Documentation

◆ getEntityChangeLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityChangeLookup ( )
Returns
EntityChangeLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityIdLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityIdLookup ( )

◆ getEntityLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityLookup ( )
See also
ClientStore::getEntityLookup

The EntityLookup returned by this method will resolve redirects.

Returns
EntityLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityPrefetcher()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityPrefetcher ( )
Returns
PrefetchingWikiPageEntityMetaDataAccessor

Implements Wikibase\Client\Store\ClientStore.

◆ getEntityRevisionLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getEntityRevisionLookup ( )
See also
ClientStore::getEntityRevisionLookup
Returns
EntityRevisionLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getLocalConnectionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getLocalConnectionManager ( )
private

Returns a LoadBalancer that acts as a factory for connections to the local (client) wiki's database.

Returns
SessionConsistentConnectionManager

◆ getPropertyInfoLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getPropertyInfoLookup ( )
See also
ClientStore::getPropertyInfoLookup
Returns
PropertyInfoLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getRecentChangesFinder()

Wikibase\Client\Store\Sql\DirectSqlStore::getRecentChangesFinder ( )
Returns
RecentChangesFinder

Implements Wikibase\Client\Store\ClientStore.

◆ getRepoConnectionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getRepoConnectionManager ( )
private

Returns a LoadBalancer that acts as a factory for connections to the repo wiki's database.

Returns
SessionConsistentConnectionManager

◆ getSiteLinkLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getSiteLinkLookup ( )
See also
ClientStore::getSiteLinkLookup
Returns
SiteLinkLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getSubscriptionManager()

Wikibase\Client\Store\Sql\DirectSqlStore::getSubscriptionManager ( )
See also
ClientStore::getSubscriptionManager
Returns
SubscriptionManager

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageLookup ( )
See also
ClientStore::getUsageLookup
Returns
UsageLookup

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageTracker()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageTracker ( )
See also
ClientStore::getUsageTracker
Returns
SqlUsageTracker

Implements Wikibase\Client\Store\ClientStore.

◆ getUsageUpdater()

Wikibase\Client\Store\Sql\DirectSqlStore::getUsageUpdater ( )

◆ newEntityRevisionLookup()

Wikibase\Client\Store\Sql\DirectSqlStore::newEntityRevisionLookup ( )
private
Returns
EntityRevisionLookup

Member Data Documentation

◆ $addEntityUsagesBatchSize

Wikibase\Client\Store\Sql\DirectSqlStore::$addEntityUsagesBatchSize
private

◆ $allowLocalShortDesc

Wikibase\Client\Store\Sql\DirectSqlStore::$allowLocalShortDesc
private

◆ $cacheDuration

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheDuration
private

◆ $cacheKeyGroup

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheKeyGroup
private

◆ $cacheKeyPrefix

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheKeyPrefix
private

◆ $cacheType

Wikibase\Client\Store\Sql\DirectSqlStore::$cacheType
private

◆ $disabledUsageAspects

Wikibase\Client\Store\Sql\DirectSqlStore::$disabledUsageAspects
private

◆ $enableImplicitDescriptionUsage

Wikibase\Client\Store\Sql\DirectSqlStore::$enableImplicitDescriptionUsage
private

◆ $entityChangeFactory

Wikibase\Client\Store\Sql\DirectSqlStore::$entityChangeFactory
private

◆ $entityIdComposer

Wikibase\Client\Store\Sql\DirectSqlStore::$entityIdComposer
private

◆ $entityIdLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$entityIdLookup
private

◆ $entityIdParser

Wikibase\Client\Store\Sql\DirectSqlStore::$entityIdParser
private

◆ $entityNamespaceLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$entityNamespaceLookup = null
private

◆ $entityRevisionLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$entityRevisionLookup = null
private

◆ $entityUsagePerPageLimit

Wikibase\Client\Store\Sql\DirectSqlStore::$entityUsagePerPageLimit
private

◆ $languageCode

Wikibase\Client\Store\Sql\DirectSqlStore::$languageCode
private

◆ $localConnectionManager

Wikibase\Client\Store\Sql\DirectSqlStore::$localConnectionManager = null
private

◆ $propertyInfoLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$propertyInfoLookup = null
private

◆ $repoConnectionManager

Wikibase\Client\Store\Sql\DirectSqlStore::$repoConnectionManager = null
private

◆ $repoWiki

Wikibase\Client\Store\Sql\DirectSqlStore::$repoWiki
private

◆ $siteId

Wikibase\Client\Store\Sql\DirectSqlStore::$siteId
private

◆ $siteLinkLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$siteLinkLookup = null
private

◆ $subscriptionManager

Wikibase\Client\Store\Sql\DirectSqlStore::$subscriptionManager = null
private

◆ $usageLookup

Wikibase\Client\Store\Sql\DirectSqlStore::$usageLookup = null
private

◆ $usageTracker

Wikibase\Client\Store\Sql\DirectSqlStore::$usageTracker = null
private

◆ $wikibaseServices

Wikibase\Client\Store\Sql\DirectSqlStore::$wikibaseServices = null
private

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