MediaWiki  1.28.0
AtomicSectionUpdate Class Reference

Deferrable Update for closure/callback updates via IDatabase::doAtomicSection() More...

Inheritance diagram for AtomicSectionUpdate:
Collaboration diagram for AtomicSectionUpdate:

Public Member Functions

 __construct (IDatabase $dbw, $fname, callable $callback)
 
 cancelOnRollback ($trigger)
 
 doUpdate ()
 Perform the actual work. More...
 
 getOrigin ()
 

Private Attributes

callable null $callback
 
IDatabase $dbw
 
string $fname
 

Detailed Description

Deferrable Update for closure/callback updates via IDatabase::doAtomicSection()

Since
1.27

Definition at line 7 of file AtomicSectionUpdate.php.

Constructor & Destructor Documentation

AtomicSectionUpdate::__construct ( IDatabase  $dbw,
  $fname,
callable  $callback 
)
Parameters
IDatabase$dbw
string$fnameCaller name (usually METHOD)
callable$callback
See also
IDatabase::doAtomicSection()

Definition at line 21 of file AtomicSectionUpdate.php.

References $callback, $dbw, and $fname.

Member Function Documentation

AtomicSectionUpdate::cancelOnRollback (   $trigger)

Definition at line 37 of file AtomicSectionUpdate.php.

AtomicSectionUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 31 of file AtomicSectionUpdate.php.

AtomicSectionUpdate::getOrigin ( )
Returns
string Originating method name

Implements DeferrableCallback.

Definition at line 43 of file AtomicSectionUpdate.php.

References $fname.

Member Data Documentation

callable null AtomicSectionUpdate::$callback
private

Definition at line 13 of file AtomicSectionUpdate.php.

Referenced by __construct().

IDatabase AtomicSectionUpdate::$dbw
private

Definition at line 9 of file AtomicSectionUpdate.php.

Referenced by __construct().

string AtomicSectionUpdate::$fname
private

Definition at line 11 of file AtomicSectionUpdate.php.

Referenced by __construct(), and getOrigin().


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