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

Protected Attributes

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

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. More...
 
- Protected Member Functions inherited from SqlDataUpdate
 invalidatePages ($namespace, array $dbkeys)
 Invalidate the cache of a list of pages from a single namespace. More...
 
- 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) More...
 

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

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, WikiPage\exists(), WikiPage\getId(), page, and wfTimestampNow().

Member Function Documentation

LinksDeletionUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 54 of file LinksDeletionUpdate.php.

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

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

Implements EnqueueableDataUpdate.

Definition at line 113 of file LinksDeletionUpdate.php.

References page.

Member Data Documentation

WikiPage LinksDeletionUpdate::$page
protected

Definition at line 27 of file LinksDeletionUpdate.php.

Referenced by __construct().

integer LinksDeletionUpdate::$pageId
protected

Definition at line 29 of file LinksDeletionUpdate.php.

Referenced by __construct(), and doUpdate().

string LinksDeletionUpdate::$timestamp
protected

Definition at line 31 of file LinksDeletionUpdate.php.


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