MediaWiki REL1_34
|
Deferrable Update for closure/callback updates that should use auto-commit mode. 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 that should use auto-commit mode.
Definition at line 9 of file AutoCommitUpdate.php.
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 | Abort if a transaction now on one of these rolls back [optional] |
Definition at line 23 of file AutoCommitUpdate.php.
References Wikimedia\Rdbms\IDatabase\onTransactionResolution().
AutoCommitUpdate::cancelOnRollback | ( | $trigger | ) |
int | $trigger |
Definition at line 61 of file AutoCommitUpdate.php.
AutoCommitUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 36 of file AutoCommitUpdate.php.
References DBO_TRX.
AutoCommitUpdate::getOrigin | ( | ) |
Implements DeferrableCallback.
Definition at line 67 of file AutoCommitUpdate.php.
|
private |
Definition at line 15 of file AutoCommitUpdate.php.
|
private |
Definition at line 11 of file AutoCommitUpdate.php.
|
private |
Definition at line 13 of file AutoCommitUpdate.php.