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 35 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 85 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 139 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 127 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 117 of file ActorStoreFactory.php.

References MediaWiki\User\ActorStoreFactory\getActorStore().

Member Data Documentation

◆ $loadBalancerFactory

ILBFactory MediaWiki\User\ActorStoreFactory::$loadBalancerFactory
private

Definition at line 44 of file ActorStoreFactory.php.

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

◆ $logger

LoggerInterface MediaWiki\User\ActorStoreFactory::$logger
private

Definition at line 50 of file ActorStoreFactory.php.

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

◆ $sharedDB

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

Definition at line 53 of file ActorStoreFactory.php.

◆ $sharedTables

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

Definition at line 56 of file ActorStoreFactory.php.

◆ $storeCache

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

Definition at line 59 of file ActorStoreFactory.php.

◆ $userNameUtils

UserNameUtils MediaWiki\User\ActorStoreFactory::$userNameUtils
private

Definition at line 47 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 38 of file ActorStoreFactory.php.


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