MediaWiki
1.34.0
|
Deferrable Update for closure/callback. More...
Public Member Functions | |
__construct (callable $callback, $fname='unknown', $dbws=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. More... | |
getOrigin () | |
getTransactionRoundRequirement () | |
setTransactionRoundRequirement ( $mode) | |
Private Attributes | |
callable null | $callback |
Callback, or null if it was cancelled. More... | |
string | $fname |
Calling method name. More... | |
int | $trxRoundRequirement = self::TRX_ROUND_PRESENT |
One of the class TRX_ROUND_* constants. More... | |
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 |
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.
References $fname.
MWCallableUpdate::getTransactionRoundRequirement | ( | ) |
Implements TransactionRoundAwareUpdate.
Definition at line 64 of file MWCallableUpdate.php.
References $trxRoundRequirement.
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.
Referenced by __construct().
|
private |
Calling method name.
Definition at line 14 of file MWCallableUpdate.php.
Referenced by __construct(), and getOrigin().
|
private |
One of the class TRX_ROUND_* constants.
Definition at line 16 of file MWCallableUpdate.php.
Referenced by getTransactionRoundRequirement().