MediaWiki REL1_33
|
Deferrable Update for closure/callback updates via IDatabase::doAtomicSection() More...
Public Member Functions | |
__construct (IDatabase $dbw, $fname, callable $callback, array $conns=[]) | |
cancelOnRollback ( $trigger) | |
doUpdate () | |
Perform the actual work. | |
getOrigin () | |
Private Attributes | |
callable null | $callback |
IDatabase | $dbw |
string | $fname |
Deferrable Update for closure/callback updates via IDatabase::doAtomicSection()
Definition at line 9 of file AtomicSectionUpdate.php.
IDatabase | $dbw | DB handle; update aborts if a transaction now this rolls back |
string | $fname | Caller name (usually METHOD) |
callable | $callback | |
IDatabase[] | $conns | Abort if a transaction now on one of these rolls back [optional] |
Definition at line 24 of file AtomicSectionUpdate.php.
References $fname, as, and Wikimedia\Rdbms\IDatabase\onTransactionResolution().
AtomicSectionUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 47 of file AtomicSectionUpdate.php.
AtomicSectionUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 37 of file AtomicSectionUpdate.php.
AtomicSectionUpdate::getOrigin | ( | ) |
Implements DeferrableCallback.
Definition at line 53 of file AtomicSectionUpdate.php.
References $fname.
|
private |
Definition at line 15 of file AtomicSectionUpdate.php.
|
private |
Definition at line 11 of file AtomicSectionUpdate.php.
|
private |
Definition at line 13 of file AtomicSectionUpdate.php.