MediaWiki master
MediaWiki\Deferred\TransactionRoundDefiningUpdate Class Reference

Deferrable update that must run outside of any explicit LBFactory transaction round. More...

Inherits MediaWiki\Deferred\DeferrableUpdate, MediaWiki\Deferred\DeferrableCallback, and MediaWiki\Deferred\TransactionRoundAwareUpdate.

Collaboration diagram for MediaWiki\Deferred\TransactionRoundDefiningUpdate:

Public Member Functions

 __construct (callable $callback, $fname='unknown')
 
 doUpdate ()
 Perform the actual work.
 
 getOrigin ()
 
 getTransactionRoundRequirement ()
 

Detailed Description

Deferrable update that must run outside of any explicit LBFactory transaction round.

Since
1.31

Definition at line 10 of file TransactionRoundDefiningUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Deferred\TransactionRoundDefiningUpdate::__construct ( callable  $callback,
  $fname = 'unknown' 
)
Parameters
callable$callback
string$fnameCalling method

Definition at line 22 of file TransactionRoundDefiningUpdate.php.

Member Function Documentation

◆ doUpdate()

MediaWiki\Deferred\TransactionRoundDefiningUpdate::doUpdate ( )

Perform the actual work.

Implements MediaWiki\Deferred\DeferrableUpdate.

Definition at line 27 of file TransactionRoundDefiningUpdate.php.

◆ getOrigin()

MediaWiki\Deferred\TransactionRoundDefiningUpdate::getOrigin ( )
Returns
string Originating method name

Implements MediaWiki\Deferred\DeferrableCallback.

Definition at line 31 of file TransactionRoundDefiningUpdate.php.

◆ getTransactionRoundRequirement()

MediaWiki\Deferred\TransactionRoundDefiningUpdate::getTransactionRoundRequirement ( )
final
Returns
int One of the class TRX_ROUND_* constants
Since
1.34

Implements MediaWiki\Deferred\TransactionRoundAwareUpdate.

Definition at line 39 of file TransactionRoundDefiningUpdate.php.


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