|
MediaWiki
master
|
Update object handling the cleanup of links tables after a page was deleted. More...


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... | |
Private Member Functions | |
| batchDeleteByPK ($table, array $conds, array $pk, $bSize) | |
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... | |
Update object handling the cleanup of links tables after a page was deleted.
Definition at line 25 of file LinksDeletionUpdate.php.
| LinksDeletionUpdate::__construct | ( | WikiPage | $page, |
$pageId = null, |
|||
$timestamp = null |
|||
| ) |
| WikiPage | $page | Page we are updating |
| integer | null | $pageId | ID of the page we are updating [optional] |
| string | null | $timestamp | TS_MW timestamp of deletion |
| MWException |
Definition at line 39 of file LinksDeletionUpdate.php.
References $page, $pageId, $timestamp, WikiPage\exists(), WikiPage\getId(), page, and wfTimestampNow().
Definition at line 186 of file LinksDeletionUpdate.php.
References SqlDataUpdate\$mDb, $res, array(), as, LIST_AND, LIST_OR, and wfGetLBFactory().
Referenced by doUpdate().
| LinksDeletionUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 54 of file LinksDeletionUpdate.php.
References $pageId, $title, LinksUpdate\acquirePageLock(), as, batchDeleteByPK(), ScopedCallback\consume(), RequestContext\getMain(), Category\newFromRow(), NS_CATEGORY, page, RC_LOG, and wfGetLBFactory().
| LinksDeletionUpdate::getAsJobSpecification | ( | ) |
Implements EnqueueableDataUpdate.
Definition at line 206 of file LinksDeletionUpdate.php.
References page.
|
protected |
Definition at line 27 of file LinksDeletionUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file LinksDeletionUpdate.php.
Referenced by __construct(), and doUpdate().
|
protected |
Definition at line 31 of file LinksDeletionUpdate.php.
Referenced by __construct().