MediaWiki  1.27.2
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, $callback)
 
 doUpdate ()
 Perform the actual work. More...
 

Private Attributes

Closure callable $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,
  $callback 
)
Parameters
IDatabase$dbw
string$fnameCaller name (usually METHOD)
callable$callback
Exceptions
InvalidArgumentException
See also
IDatabase::doAtomicSection()

Definition at line 22 of file AtomicSectionUpdate.php.

References $callback, $dbw, and $fname.

Member Function Documentation

AtomicSectionUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 31 of file AtomicSectionUpdate.php.

Member Data Documentation

Closure callable 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().


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