MediaWiki REL1_34
|
Deferrable Update for closure/callback. More...
Public Member Functions | |
__construct (callable $callback, $fname='unknown', $dbws=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
getTransactionRoundRequirement () | |
setTransactionRoundRequirement ( $mode) | |
Private Attributes | |
callable null | $callback |
Callback, or null if it was cancelled. | |
string | $fname |
Calling method name. | |
int | $trxRoundRequirement = self::TRX_ROUND_PRESENT |
One of the class TRX_ROUND_* constants. | |
Deferrable Update for closure/callback.
Definition at line 8 of file MWCallableUpdate.php.
MWCallableUpdate::__construct | ( | callable | $callback, |
$fname = 'unknown' , |
|||
$dbws = [] |
|||
) |
callable | $callback | |
string | $fname | Calling method |
IDatabase | IDatabase[] | null | $dbws | Abort if any of the specified DB handles have a currently pending transaction which later gets rolled back [optional] (since 1.28) |
Definition at line 24 of file MWCallableUpdate.php.
MWCallableUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 46 of file MWCallableUpdate.php.
MWCallableUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 36 of file MWCallableUpdate.php.
MWCallableUpdate::getOrigin | ( | ) |
Implements DeferrableCallback.
Definition at line 52 of file MWCallableUpdate.php.
MWCallableUpdate::getTransactionRoundRequirement | ( | ) |
Implements TransactionRoundAwareUpdate.
Definition at line 64 of file MWCallableUpdate.php.
MWCallableUpdate::setTransactionRoundRequirement | ( | $mode | ) |
int | $mode | One of the class TRX_ROUND_* constants |
Definition at line 60 of file MWCallableUpdate.php.
Referenced by MediaWiki\Storage\DerivedPageDataUpdater\doUpdates().
|
private |
Callback, or null if it was cancelled.
Definition at line 12 of file MWCallableUpdate.php.
|
private |
Calling method name.
Definition at line 14 of file MWCallableUpdate.php.
|
private |
One of the class TRX_ROUND_* constants.
Definition at line 16 of file MWCallableUpdate.php.