MediaWiki REL1_41
|
DeferrableUpdate for closure/callable. More...
Inherits DeferrableUpdate, DeferrableCallback, and TransactionRoundAwareUpdate.
Public Member Functions | |
__construct (callable $callback, $fname='unknown', $dbws=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
getTransactionRoundRequirement () | |
setTransactionRoundRequirement ( $mode) | |
DeferrableUpdate for closure/callable.
Definition at line 10 of file MWCallableUpdate.php.
MWCallableUpdate::__construct | ( | callable | $callback, |
$fname = 'unknown', | |||
$dbws = [] ) |
callable | $callback | |
string | $fname | Calling method |
IDatabase | IDatabase[] | null | $dbws | Cancel the update if a DB transaction is rolled back [optional] (since 1.28) |
Definition at line 26 of file MWCallableUpdate.php.
MWCallableUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 48 of file MWCallableUpdate.php.
MWCallableUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 38 of file MWCallableUpdate.php.
MWCallableUpdate::getOrigin | ( | ) |
Implements DeferrableCallback.
Definition at line 54 of file MWCallableUpdate.php.
MWCallableUpdate::getTransactionRoundRequirement | ( | ) |
Implements TransactionRoundAwareUpdate.
Definition at line 66 of file MWCallableUpdate.php.
MWCallableUpdate::setTransactionRoundRequirement | ( | $mode | ) |
int | $mode | One of the class TRX_ROUND_* constants |
Definition at line 62 of file MWCallableUpdate.php.