MediaWiki  master
MediaWiki\User\ActorStoreFactory Class Reference
Collaboration diagram for MediaWiki\User\ActorStoreFactory:

Public Member Functions

 __construct (ServiceOptions $options, ILBFactory $loadBalancerFactory, UserNameUtils $userNameUtils, LoggerInterface $logger)
 
 getActorNormalization ( $wikiId=WikiAwareEntity::LOCAL)
 
 getActorStore ( $wikiId=WikiAwareEntity::LOCAL)
 
 getUserIdentityLookup ( $wikiId=WikiAwareEntity::LOCAL)
 

Public Attributes

const CONSTRUCTOR_OPTIONS
 

Private Member Functions

 getLoadBalancerForTable (string $table, $wikiId=WikiAwareEntity::LOCAL)
 Returns a load balancer for the database that has the $table for the given $wikiId. More...
 
 getStoreCacheKey ( $wikiId)
 

Private Attributes

ILBFactory $loadBalancerFactory
 
LoggerInterface $logger
 
string false $sharedDB
 
string[] $sharedTables
 
ActorStore[] $storeCache = []
 
UserNameUtils $userNameUtils
 

Detailed Description

Definition at line 36 of file ActorStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\ActorStoreFactory::__construct ( ServiceOptions  $options,
ILBFactory  $loadBalancerFactory,
UserNameUtils  $userNameUtils,
LoggerInterface  $logger 
)

Member Function Documentation

◆ getActorNormalization()

MediaWiki\User\ActorStoreFactory::getActorNormalization (   $wikiId = WikiAwareEntity::LOCAL)
Parameters
bool$wikiId
Returns
ActorNormalization

Definition at line 86 of file ActorStoreFactory.php.

References MediaWiki\User\ActorStoreFactory\getActorStore().

◆ getActorStore()

MediaWiki\User\ActorStoreFactory::getActorStore (   $wikiId = WikiAwareEntity::LOCAL)

◆ getLoadBalancerForTable()

MediaWiki\User\ActorStoreFactory::getLoadBalancerForTable ( string  $table,
  $wikiId = WikiAwareEntity::LOCAL 
)
private

Returns a load balancer for the database that has the $table for the given $wikiId.

Parameters
string$table
bool$wikiId
Returns
ILoadBalancer

Definition at line 140 of file ActorStoreFactory.php.

Referenced by MediaWiki\User\ActorStoreFactory\getActorStore().

◆ getStoreCacheKey()

MediaWiki\User\ActorStoreFactory::getStoreCacheKey (   $wikiId)
private
Parameters
string | false$wikiId
Returns
string

Definition at line 128 of file ActorStoreFactory.php.

Referenced by MediaWiki\User\ActorStoreFactory\getActorStore().

◆ getUserIdentityLookup()

MediaWiki\User\ActorStoreFactory::getUserIdentityLookup (   $wikiId = WikiAwareEntity::LOCAL)
Parameters
bool$wikiId
Returns
UserIdentityLookup

Definition at line 118 of file ActorStoreFactory.php.

References MediaWiki\User\ActorStoreFactory\getActorStore().

Member Data Documentation

◆ $loadBalancerFactory

ILBFactory MediaWiki\User\ActorStoreFactory::$loadBalancerFactory
private

Definition at line 45 of file ActorStoreFactory.php.

Referenced by MediaWiki\User\ActorStoreFactory\__construct().

◆ $logger

LoggerInterface MediaWiki\User\ActorStoreFactory::$logger
private

Definition at line 51 of file ActorStoreFactory.php.

Referenced by MediaWiki\User\ActorStoreFactory\__construct().

◆ $sharedDB

string false MediaWiki\User\ActorStoreFactory::$sharedDB
private

Definition at line 54 of file ActorStoreFactory.php.

◆ $sharedTables

string [] MediaWiki\User\ActorStoreFactory::$sharedTables
private

Definition at line 57 of file ActorStoreFactory.php.

◆ $storeCache

ActorStore [] MediaWiki\User\ActorStoreFactory::$storeCache = []
private

Definition at line 60 of file ActorStoreFactory.php.

◆ $userNameUtils

UserNameUtils MediaWiki\User\ActorStoreFactory::$userNameUtils
private

Definition at line 48 of file ActorStoreFactory.php.

Referenced by MediaWiki\User\ActorStoreFactory\__construct().

◆ CONSTRUCTOR_OPTIONS

const MediaWiki\User\ActorStoreFactory::CONSTRUCTOR_OPTIONS
Initial value:
= [
'SharedDB',
'SharedTables',
]
Access: internal

Definition at line 39 of file ActorStoreFactory.php.


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