MediaWiki  1.33.0
MWCallableUpdate Class Reference

Deferrable Update for closure/callback. More...

Inheritance diagram for MWCallableUpdate:
Collaboration diagram for MWCallableUpdate:

Public Member Functions

 __construct (callable $callback, $fname='unknown', $dbws=[])
 cancelOnRollback ( $trigger)
 doUpdate ()
 Perform the actual work. More...
 getOrigin ()

Private Attributes

callable null $callback
string $fname

Detailed Description

Deferrable Update for closure/callback.

Definition at line 8 of file MWCallableUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

MWCallableUpdate::__construct ( callable  $callback,
  $fname = 'unknown',
  $dbws = [] 
string$fnameCalling method
IDatabase | IDatabase[] | null$dbwsAbort if any of the specified DB handles have a currently pending transaction which later gets rolled back optional

Definition at line 20 of file MWCallableUpdate.php.

References $callback, $fname, and as.

Member Function Documentation

◆ cancelOnRollback()

MWCallableUpdate::cancelOnRollback (   $trigger)
Access:\n private This method is public so that it works with onTransactionResolution()

Definition at line 42 of file MWCallableUpdate.php.

◆ doUpdate()

MWCallableUpdate::doUpdate ( )

◆ getOrigin()

MWCallableUpdate::getOrigin ( )
string Originating method name

Implements DeferrableCallback.

Definition at line 48 of file MWCallableUpdate.php.

References $fname.

Member Data Documentation

◆ $callback

callable null MWCallableUpdate::$callback

Definition at line 10 of file MWCallableUpdate.php.

Referenced by __construct().

◆ $fname

string MWCallableUpdate::$fname

Definition at line 12 of file MWCallableUpdate.php.

Referenced by __construct(), and getOrigin().

The documentation for this class was generated from the following file: