MediaWiki master
|
Deferrable Update for closure/callback updates via IDatabase::doAtomicSection() 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 via IDatabase::doAtomicSection()
Definition at line 11 of file AtomicSectionUpdate.php.
MediaWiki\Deferred\AtomicSectionUpdate::__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 | |
IDatabase[] | $conns | Cancel the update if a DB transaction is rolled back [optional] |
Definition at line 26 of file AtomicSectionUpdate.php.
References Wikimedia\Rdbms\IDatabase\onTransactionResolution().
MediaWiki\Deferred\AtomicSectionUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 49 of file AtomicSectionUpdate.php.
MediaWiki\Deferred\AtomicSectionUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements MediaWiki\Deferred\DeferrableUpdate.
Definition at line 39 of file AtomicSectionUpdate.php.
MediaWiki\Deferred\AtomicSectionUpdate::getOrigin | ( | ) |
Implements MediaWiki\Deferred\DeferrableCallback.
Definition at line 55 of file AtomicSectionUpdate.php.