MediaWiki master
MediaWiki\Storage\NameTableStoreFactory Class Reference

Public Member Functions

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

Detailed Description

Definition at line 14 of file NameTableStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 56 of file NameTableStoreFactory.php.

Member Function Documentation

◆ get()

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

Get a NameTableStore for a specific table.

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

Definition at line 70 of file NameTableStoreFactory.php.

◆ 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 105 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 115 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 125 of file NameTableStoreFactory.php.


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