MediaWiki REL1_31
|
Deferrable Update for closure/callback. More...
Public Member Functions | |
__construct (callable $callback, $fname='unknown', $dbws=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
Private Attributes | |
callable null | $callback |
string | $fname |
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 20 of file MWCallableUpdate.php.
MWCallableUpdate::cancelOnRollback | ( | $trigger | ) |
Definition at line 38 of file MWCallableUpdate.php.
MWCallableUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 32 of file MWCallableUpdate.php.
Referenced by MWCallableUpdateTest\testCancel(), MWCallableUpdateTest\testCancelAll(), and MWCallableUpdateTest\testCancelSome().
MWCallableUpdate::getOrigin | ( | ) |
Implements DeferrableCallback.
Definition at line 44 of file MWCallableUpdate.php.
References $fname.
|
private |
Definition at line 10 of file MWCallableUpdate.php.
Referenced by __construct().
|
private |
Definition at line 12 of file MWCallableUpdate.php.
Referenced by __construct(), and getOrigin().