MediaWiki  master
MediaWiki\Storage\NameTableStoreFactory Class Reference
Collaboration diagram for MediaWiki\Storage\NameTableStoreFactory:

Public Member Functions

 __construct (ILBFactory $lbFactory, WANObjectCache $cache, LoggerInterface $logger)
 
 get ( $tableName, $wiki=false)
 Get a NameTableStore for a specific table. More...
 
 getChangeTagDef ( $wiki=false)
 Get a NameTableStore for the change_tag_def table. More...
 
 getContentModels ( $wiki=false)
 Get a NameTableStore for the content_models table. More...
 
 getSlotRoles ( $wiki=false)
 Get a NameTableStore for the slot_roles table. More...
 

Static Private Member Functions

static getTableInfo ()
 

Private Attributes

WANObjectCache $cache
 
ILBFactory $lbFactory
 
LoggerInterface $logger
 
 $stores = []
 

Static Private Attributes

static $info
 

Detailed Description

Definition at line 26 of file NameTableStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Storage\NameTableStoreFactory::__construct ( ILBFactory  $lbFactory,
WANObjectCache  $cache,
LoggerInterface  $logger 
)

Member Function Documentation

◆ get()

MediaWiki\Storage\NameTableStoreFactory::get (   $tableName,
  $wiki = false 
)

Get a NameTableStore for a specific table.

Parameters
string$tableNameThe table name
string | false$wikiThe target wiki ID, or false for the current wiki
Returns
NameTableStore

Definition at line 92 of file NameTableStoreFactory.php.

References MediaWiki\Storage\NameTableStoreFactory\$cache, MediaWiki\Storage\NameTableStoreFactory\$info, and MediaWiki\Storage\NameTableStoreFactory\$logger.

◆ getChangeTagDef()

MediaWiki\Storage\NameTableStoreFactory::getChangeTagDef (   $wiki = false)

Get a NameTableStore for the change_tag_def table.

Parameters
string | bool$wiki
Returns
NameTableStore

Definition at line 127 of file NameTableStoreFactory.php.

Referenced by MediaWiki\Rest\Handler\PageHistoryHandler\__construct(), and MediaWiki\Rest\Handler\PageHistoryCountHandler\__construct().

◆ getContentModels()

MediaWiki\Storage\NameTableStoreFactory::getContentModels (   $wiki = false)

Get a NameTableStore for the content_models table.

Parameters
string | bool$wiki
Returns
NameTableStore

Definition at line 137 of file NameTableStoreFactory.php.

◆ getSlotRoles()

MediaWiki\Storage\NameTableStoreFactory::getSlotRoles (   $wiki = false)

Get a NameTableStore for the slot_roles table.

Parameters
string | bool$wiki
Returns
NameTableStore

Definition at line 147 of file NameTableStoreFactory.php.

◆ getTableInfo()

static MediaWiki\Storage\NameTableStoreFactory::getTableInfo ( )
staticprivate

Definition at line 39 of file NameTableStoreFactory.php.

Member Data Documentation

◆ $cache

WANObjectCache MediaWiki\Storage\NameTableStoreFactory::$cache
private

◆ $info

MediaWiki\Storage\NameTableStoreFactory::$info
staticprivate

◆ $lbFactory

ILBFactory MediaWiki\Storage\NameTableStoreFactory::$lbFactory
private

◆ $logger

LoggerInterface MediaWiki\Storage\NameTableStoreFactory::$logger
private

◆ $stores

MediaWiki\Storage\NameTableStoreFactory::$stores = []
private

Definition at line 28 of file NameTableStoreFactory.php.


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