MediaWiki REL1_28
DataUpdate Class Reference

Abstract base class for update jobs that do something with some secondary data extracted from article. More...

Inheritance diagram for DataUpdate:
Collaboration diagram for DataUpdate:

Public Member Functions

 __construct ()
 
 setTransactionTicket ( $ticket)
 
- Public Member Functions inherited from DeferrableUpdate
 doUpdate ()
 Perform the actual work.
 

Static Public Member Functions

static runUpdates (array $updates)
 Convenience method, calls doUpdate() on every DataUpdate in the array.
 

Protected Attributes

mixed $ticket
 Result from LBFactory::getEmptyTransactionTicket()
 

Detailed Description

Abstract base class for update jobs that do something with some secondary data extracted from article.

Definition at line 28 of file DataUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

DataUpdate::__construct ( )

Reimplemented in SqlDataUpdate.

Definition at line 32 of file DataUpdate.php.

Member Function Documentation

◆ runUpdates()

static DataUpdate::runUpdates ( array  $updates)
static

Convenience method, calls doUpdate() on every DataUpdate in the array.

Parameters
DataUpdate[]$updatesA list of DataUpdate instances
Exceptions
Exception
Deprecated:
Since 1.28 Use DeferredUpdates::execute()

Definition at line 51 of file DataUpdate.php.

References as.

◆ setTransactionTicket()

DataUpdate::setTransactionTicket (   $ticket)
Parameters
mixed$ticketResult of getEmptyTransactionTicket()
Since
1.28

Definition at line 40 of file DataUpdate.php.

References $ticket.

Member Data Documentation

◆ $ticket

mixed DataUpdate::$ticket
protected

Result from LBFactory::getEmptyTransactionTicket()

Definition at line 30 of file DataUpdate.php.

Referenced by setTransactionTicket().


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