|
MediaWiki REL1_39
|
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) | |
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.