MediaWiki  1.23.6
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)
 Constructor. More...
 
 doUpdate ()
 Do some database updates after deletion. More...
 
 updateCategoryCounts ( $added, $deleted)
 Update all the appropriate counts in the category table. More...
 
- 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 ()
 Constructor. More...
 
 rollbackTransaction ()
 Abort / roll back the transaction started via beginTransaction, if any. More...
 

Protected Attributes

WikiPage $mPage
 The WikiPage that was deleted *. More...
 
- Protected Attributes inherited from SqlDataUpdate
DatabaseBase $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 ( $updates)
 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...
 

Detailed Description

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

Definition at line 871 of file LinksUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

LinksDeletionUpdate::__construct ( WikiPage  $page)

Constructor.

Parameters
WikiPage$pagePage we are updating
Exceptions
MWException

Definition at line 880 of file LinksUpdate.php.

References WikiPage\exists().

Member Function Documentation

◆ doUpdate()

LinksDeletionUpdate::doUpdate ( )

Do some database updates after deletion.

Implements DeferrableUpdate.

Definition at line 893 of file LinksUpdate.php.

References $res, $title, array(), as, and RC_LOG.

◆ updateCategoryCounts()

LinksDeletionUpdate::updateCategoryCounts (   $added,
  $deleted 
)

Update all the appropriate counts in the category table.

Parameters
array$addedAssociative array of category name => sort key
array$deletedAssociative array of category name => sort key

Definition at line 943 of file LinksUpdate.php.

References WikiPage\factory().

Member Data Documentation

◆ $mPage

WikiPage LinksDeletionUpdate::$mPage
protected

The WikiPage that was deleted *.

Definition at line 872 of file LinksUpdate.php.


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