MediaWiki  master
MediaWiki\Deferred\LinksUpdate\LinksTableGroup Class Reference

Public Member Functions

 __construct (ObjectFactory $objectFactory, LBFactory $lbFactory, CollationFactory $collationFactory, PageIdentity $page, LinkTargetLookup $linkTargetLookup, $batchSize, $afterUpdateHook, array $tempCollations)
 
 get ( $tableName)
 Get a LinksTable for a given table. More...
 
 getAll ()
 Get LinksTable objects for all known links tables. More...
 
 setMoveDetails (PageReference $oldPage)
 Set the original title in the case of a page move. More...
 
 setParserOutput (ParserOutput $parserOutput)
 Set the ParserOutput object to be used in new and existing objects. More...
 
 setRevision (RevisionRecord $revision)
 Set the revision to be used in new and existing objects. More...
 
 setStrictTestMode ( $mode=true)
 Set the strict test mode. More...
 
 setTransactionTicket ( $ticket)
 Set the transaction ticket to be used in new and existing objects. More...
 

Detailed Description

Since
1.38

Definition at line 19 of file LinksTableGroup.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::__construct ( ObjectFactory  $objectFactory,
LBFactory  $lbFactory,
CollationFactory  $collationFactory,
PageIdentity  $page,
LinkTargetLookup  $linkTargetLookup,
  $batchSize,
  $afterUpdateHook,
array  $tempCollations 
)
Parameters
ObjectFactory$objectFactory
LBFactory$lbFactory
CollationFactory$collationFactory
PageIdentity$page
LinkTargetLookup$linkTargetLookup
int$batchSize
callable | null$afterUpdateHook
array$tempCollations

Definition at line 119 of file LinksTableGroup.php.

Member Function Documentation

◆ get()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::get (   $tableName)

Get a LinksTable for a given table.

Parameters
string$tableName
Returns
LinksTable

Definition at line 256 of file LinksTableGroup.php.

References MediaWiki\MediaWikiServices\getInstance().

◆ getAll()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::getAll ( )

Get LinksTable objects for all known links tables.

Returns
iterable<LinksTable>

Definition at line 296 of file LinksTableGroup.php.

Referenced by MediaWiki\Deferred\LinksUpdate\LinksTableGroup\setStrictTestMode().

◆ setMoveDetails()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::setMoveDetails ( PageReference  $oldPage)

Set the original title in the case of a page move.

Parameters
PageReference$oldPage

Definition at line 159 of file LinksTableGroup.php.

◆ setParserOutput()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::setParserOutput ( ParserOutput  $parserOutput)

Set the ParserOutput object to be used in new and existing objects.

Parameters
ParserOutput$parserOutput

Definition at line 147 of file LinksTableGroup.php.

Referenced by MediaWiki\Deferred\LinksUpdate\LinksUpdate\__construct().

◆ setRevision()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::setRevision ( RevisionRecord  $revision)

Set the revision to be used in new and existing objects.

Parameters
RevisionRecord$revision

Definition at line 183 of file LinksTableGroup.php.

◆ setStrictTestMode()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::setStrictTestMode (   $mode = true)

Set the strict test mode.

Parameters
bool$mode

Definition at line 195 of file LinksTableGroup.php.

References MediaWiki\Deferred\LinksUpdate\LinksTableGroup\getAll().

◆ setTransactionTicket()

MediaWiki\Deferred\LinksUpdate\LinksTableGroup::setTransactionTicket (   $ticket)

Set the transaction ticket to be used in new and existing objects.

Parameters
mixed$ticket

Definition at line 171 of file LinksTableGroup.php.


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