MediaWiki  1.28.1
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', IDatabase $dbw=null)
 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 6 of file MWCallableUpdate.php.

Constructor & Destructor Documentation

MWCallableUpdate::__construct ( callable  $callback,
  $fname = 'unknown',
IDatabase  $dbw = null 
string$fnameCalling method
IDatabase | null$dbwAbort if this DB is rolled back optional

Definition at line 17 of file MWCallableUpdate.php.

References $callback, and $fname.

Member Function Documentation

MWCallableUpdate::cancelOnRollback (   $trigger)

Definition at line 32 of file MWCallableUpdate.php.

MWCallableUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 26 of file MWCallableUpdate.php.

MWCallableUpdate::getOrigin ( )
string Originating method name

Implements DeferrableCallback.

Definition at line 38 of file MWCallableUpdate.php.

References $fname.

Member Data Documentation

callable null MWCallableUpdate::$callback

Definition at line 8 of file MWCallableUpdate.php.

Referenced by __construct().

string MWCallableUpdate::$fname

Definition at line 10 of file MWCallableUpdate.php.

Referenced by __construct(), and getOrigin().

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