MediaWiki REL1_27
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.
 
 getAsJobSpecification ()
 
- Public Member Functions inherited from SqlDataUpdate
 __construct ( $withTransaction=true)
 Constructor.
 
 abortTransaction ()
 Abort the database transaction started via beginTransaction (if any).
 
 beginTransaction ()
 Begin a database transaction, if $withTransaction was given as true in the constructor for this SqlDataUpdate.
 
 commitTransaction ()
 Commit the database transaction started via beginTransaction (if any).
 
- Public Member Functions inherited from DataUpdate
 __construct ()
 
 rollbackTransaction ()
 Abort / roll back the transaction started via beginTransaction, if any.
 

Protected Attributes

WikiPage $page
 
integer $pageId
 
string $timestamp
 
- Protected Attributes inherited from SqlDataUpdate
IDatabase $mDb
 Database connection reference.
 
array $mOptions = []
 SELECT options to be used (array)
 
bool $mUseTransaction
 Whether this update should be wrapped in a transaction.
 

Additional Inherited Members

- Static Public Member Functions inherited from DataUpdate
static runUpdates (array $updates, $mode='run')
 Convenience method, calls doUpdate() on every DataUpdate in the array.
 
- Protected Member Functions inherited from SqlDataUpdate
 invalidatePages ( $namespace, array $dbkeys)
 Invalidate the cache of a list of pages from a single namespace.
 
- Static Protected Member Functions inherited from DataUpdate
static enqueueUpdates (array $updates)
 Enqueue jobs for every DataUpdate that support enqueueUpdate() and return the remaining DataUpdate objects (those that do not)
 

Detailed Description

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

Definition at line 25 of file LinksDeletionUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 39 of file LinksDeletionUpdate.php.

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

Member Function Documentation

◆ doUpdate()

LinksDeletionUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 54 of file LinksDeletionUpdate.php.

References $pageId, $title, page, and RC_LOG.

◆ getAsJobSpecification()

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

Implements EnqueueableDataUpdate.

Definition at line 113 of file LinksDeletionUpdate.php.

References page.

Member Data Documentation

◆ $page

WikiPage LinksDeletionUpdate::$page
protected

Definition at line 27 of file LinksDeletionUpdate.php.

Referenced by __construct().

◆ $pageId

integer LinksDeletionUpdate::$pageId
protected

Definition at line 29 of file LinksDeletionUpdate.php.

Referenced by __construct(), and doUpdate().

◆ $timestamp

string LinksDeletionUpdate::$timestamp
protected

Definition at line 31 of file LinksDeletionUpdate.php.

Referenced by __construct().


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