MediaWiki  REL1_21
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:

List of all members.

Public Member Functions

 __construct (WikiPage $page)
 Constructor.
 doUpdate ()
 Do some database updates after deletion.
 updateCategoryCounts ($added, $deleted)
 Update all the appropriate counts in the category table.

Protected Attributes

 $mPage
 WikiPage the wikipage that was deleted.

Detailed Description

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

Definition at line 815 of file LinksUpdate.php.


Constructor & Destructor Documentation

Constructor.

Parameters:
$pageWikiPage Page we are updating
Exceptions:
MWException

Definition at line 825 of file LinksUpdate.php.

References $page, DataUpdate\__construct(), and WikiPage\exists().


Member Function Documentation

Do some database updates after deletion.

Implements DeferrableUpdate.

Definition at line 838 of file LinksUpdate.php.

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

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 890 of file LinksUpdate.php.

References WikiPage\factory().


Member Data Documentation

LinksDeletionUpdate::$mPage [protected]

WikiPage the wikipage that was deleted.

Definition at line 817 of file LinksUpdate.php.


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