MediaWiki REL1_34
TransactionRoundDefiningUpdate Class Reference

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

Inheritance diagram for TransactionRoundDefiningUpdate:
Collaboration diagram for TransactionRoundDefiningUpdate:

Public Member Functions

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

Private Attributes

callable null $callback
 
string $fname
 

Detailed Description

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

Since
1.31

Definition at line 8 of file TransactionRoundDefiningUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 20 of file TransactionRoundDefiningUpdate.php.

References $callback, and $fname.

Member Function Documentation

◆ doUpdate()

TransactionRoundDefiningUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 25 of file TransactionRoundDefiningUpdate.php.

◆ getOrigin()

TransactionRoundDefiningUpdate::getOrigin ( )
Returns
string Originating method name

Implements DeferrableCallback.

Definition at line 29 of file TransactionRoundDefiningUpdate.php.

References $fname.

◆ getTransactionRoundRequirement()

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

Implements TransactionRoundAwareUpdate.

Definition at line 37 of file TransactionRoundDefiningUpdate.php.

Member Data Documentation

◆ $callback

callable null TransactionRoundDefiningUpdate::$callback
private

Definition at line 12 of file TransactionRoundDefiningUpdate.php.

Referenced by __construct().

◆ $fname

string TransactionRoundDefiningUpdate::$fname
private

Definition at line 14 of file TransactionRoundDefiningUpdate.php.

Referenced by __construct(), and getOrigin().


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