23 if ( $dbw && $dbw->trxLevel() ) {
24 $dbw->onTransactionResolution( [ $this,
'cancelOnRollback' ],
$fname );
29 if ( $this->callback ) {
30 call_user_func( $this->callback );
35 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
36 $this->callback =
null;
Deferrable Update for closure/callback.
cancelOnRollback( $trigger)
doUpdate()
Perform the actual work.
__construct(callable $callback, $fname='unknown', IDatabase $dbw=null)
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.