MediaWiki
1.23.5
|
Update object handling the cleanup of links tables after a page was deleted. More...
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... | |
Update object handling the cleanup of links tables after a page was deleted.
Definition at line 871 of file LinksUpdate.php.
LinksDeletionUpdate::__construct | ( | WikiPage | $page | ) |
Constructor.
MWException |
Definition at line 880 of file LinksUpdate.php.
References WikiPage\exists().
LinksDeletionUpdate::doUpdate | ( | ) |
Do some database updates after deletion.
Implements DeferrableUpdate.
Definition at line 893 of file LinksUpdate.php.
LinksDeletionUpdate::updateCategoryCounts | ( | $added, | |
$deleted | |||
) |
Update all the appropriate counts in the category table.
array | $added | Associative array of category name => sort key |
array | $deleted | Associative array of category name => sort key |
Definition at line 943 of file LinksUpdate.php.
References WikiPage\factory().
|
protected |
The WikiPage that was deleted *.
Definition at line 872 of file LinksUpdate.php.