24 $dbws = is_array( $dbws ) ? $dbws : [ $dbws ];
25 foreach ( $dbws as $dbw ) {
26 if ( $dbw && $dbw->trxLevel() ) {
27 $dbw->onTransactionResolution( [ $this,
'cancelOnRollback' ],
$fname );
33 if ( $this->callback ) {
34 call_user_func( $this->callback );
39 if ( $trigger === IDatabase::TRIGGER_ROLLBACK ) {
40 $this->callback =
null;
Deferrable Update for closure/callback.
cancelOnRollback( $trigger)
doUpdate()
Perform the actual work.
__construct(callable $callback, $fname='unknown', $dbws=[])
Callback wrapper that has an originating method.
Interface that deferrable updates should implement.