MediaWiki  1.28.1
LinksDeletionUpdate Class Reference

Update object handling the cleanup of links tables after a page was deleted. More...

Inheritance diagram for LinksDeletionUpdate:
Collaboration diagram for LinksDeletionUpdate:

Public Member Functions

 __construct (WikiPage $page, $pageId=null, $timestamp=null)
 doUpdate ()
 Perform the actual work. More...
 getAsJobSpecification ()
- Public Member Functions inherited from DataUpdate
 __construct ()
 setTransactionTicket ($ticket)

Protected Member Functions

 getDB ()

Protected Attributes

WikiPage $page
integer $pageId
string $timestamp
- Protected Attributes inherited from DataUpdate
mixed $ticket
 Result from LBFactory::getEmptyTransactionTicket() More...

Private Member Functions

 batchDeleteByPK ($table, array $conds, array $pk, $bSize)

Private Attributes

IDatabase $db

Additional Inherited Members

- Static Public Member Functions inherited from DataUpdate
static runUpdates (array $updates)
 Convenience method, calls doUpdate() on every DataUpdate in the array. More...

Detailed Description

Update object handling the cleanup of links tables after a page was deleted.

Definition at line 28 of file LinksDeletionUpdate.php.

Constructor & Destructor Documentation

LinksDeletionUpdate::__construct ( WikiPage  $page,
  $pageId = null,
  $timestamp = null 
WikiPage$pagePage we are updating
integer | null$pageIdID of the page we are updating [optional]
string | null$timestampTS_MW timestamp of deletion

Definition at line 45 of file LinksDeletionUpdate.php.

References $page, $pageId, WikiPage\exists(), WikiPage\getId(), page, and wfTimestampNow().

Member Function Documentation

LinksDeletionUpdate::batchDeleteByPK (   $table,
array  $conds,
array  $pk,

Definition at line 194 of file LinksDeletionUpdate.php.

References $lbFactory, $res, $services, array(), as, getDB(), LIST_AND, and LIST_OR.

Referenced by doUpdate().

LinksDeletionUpdate::doUpdate ( )
LinksDeletionUpdate::getAsJobSpecification ( )
array (wiki => wiki ID, job => IJobSpecification)

Implements EnqueueableDataUpdate.

Definition at line 226 of file LinksDeletionUpdate.php.

References getDB(), and page.

LinksDeletionUpdate::getDB ( )

Definition at line 218 of file LinksDeletionUpdate.php.

References $db, DB_MASTER, and wfGetDB().

Referenced by batchDeleteByPK(), doUpdate(), and getAsJobSpecification().

Member Data Documentation

IDatabase LinksDeletionUpdate::$db

Definition at line 37 of file LinksDeletionUpdate.php.

Referenced by getDB().

WikiPage LinksDeletionUpdate::$page

Definition at line 30 of file LinksDeletionUpdate.php.

Referenced by __construct().

integer LinksDeletionUpdate::$pageId

Definition at line 32 of file LinksDeletionUpdate.php.

Referenced by __construct(), and doUpdate().

string LinksDeletionUpdate::$timestamp

Definition at line 34 of file LinksDeletionUpdate.php.

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