MediaWiki master
|
DeferrableUpdate for closure/callable. More...
Inherits MediaWiki\Deferred\DeferrableUpdate, MediaWiki\Deferred\DeferrableCallback, and MediaWiki\Deferred\TransactionRoundAwareUpdate.
Public Member Functions | |
__construct (callable $callback, $fname=ISQLPlatform::CALLER_UNKNOWN, $dbws=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
getTransactionRoundRequirement () | |
setTransactionRoundRequirement ( $mode) | |
DeferrableUpdate for closure/callable.
Definition at line 13 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::__construct | ( | callable | $callback, |
$fname = ISQLPlatform::CALLER_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 29 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 51 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements MediaWiki\Deferred\DeferrableUpdate.
Definition at line 41 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::getOrigin | ( | ) |
Implements MediaWiki\Deferred\DeferrableCallback.
Definition at line 57 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::getTransactionRoundRequirement | ( | ) |
Implements MediaWiki\Deferred\TransactionRoundAwareUpdate.
Definition at line 69 of file MWCallableUpdate.php.
MediaWiki\Deferred\MWCallableUpdate::setTransactionRoundRequirement | ( | $mode | ) |
int | $mode | One of the class TRX_ROUND_* constants |
Definition at line 65 of file MWCallableUpdate.php.