MediaWiki 1.42.1
|
Deferrable Update for closure/callback updates that should use auto-commit mode. More...
Inherits MediaWiki\Deferred\DeferrableUpdate, and MediaWiki\Deferred\DeferrableCallback.
Public Member Functions | |
__construct (IDatabase $dbw, $fname, callable $callback, array $conns=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
Deferrable Update for closure/callback updates that should use auto-commit mode.
Definition at line 11 of file AutoCommitUpdate.php.
MediaWiki\Deferred\AutoCommitUpdate::__construct | ( | IDatabase | $dbw, |
$fname, | |||
callable | $callback, | ||
array | $conns = [] ) |
IDatabase | $dbw | DB handle; update aborts if a transaction now this rolls back |
string | $fname | Caller name (usually METHOD) |
callable | $callback | Callback that takes (IDatabase, method name string) |
IDatabase[] | $conns | Cancel the update if a transaction on these connections is rolled back [optional] |
Definition at line 26 of file AutoCommitUpdate.php.
References Wikimedia\Rdbms\IDatabase\onTransactionResolution().
MediaWiki\Deferred\AutoCommitUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 59 of file AutoCommitUpdate.php.
MediaWiki\Deferred\AutoCommitUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements MediaWiki\Deferred\DeferrableUpdate.
Definition at line 39 of file AutoCommitUpdate.php.
References DBO_TRX.
MediaWiki\Deferred\AutoCommitUpdate::getOrigin | ( | ) |
Implements MediaWiki\Deferred\DeferrableCallback.
Definition at line 65 of file AutoCommitUpdate.php.