MediaWiki
1.32.5
|
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 DataUpdate | |
__construct () | |
getCauseAction () | |
getCauseAgent () | |
setCause ( $action, $user) | |
setTransactionTicket ( $ticket) | |
Protected Member Functions | |
getDB () | |
Protected Attributes | |
WikiPage | $page |
int | $pageId |
string | $timestamp |
Protected Attributes inherited from DataUpdate | |
string | $causeAction = 'unknown' |
Short update cause action description. More... | |
string | $causeAgent = 'unknown' |
Short update cause user description. More... | |
mixed | $ticket |
Result from LBFactory::getEmptyTransactionTicket() More... | |
Private Member Functions | |
batchDeleteByPK ( $table, array $conds, array $pk, $bSize) | |
Private Attributes | |
IDatabase | $db |
Additional Inherited Members | |
Static Public Member Functions inherited from DataUpdate | |
static | runUpdates (array $updates) |
Convenience method, calls doUpdate() on every DataUpdate in the array. More... | |
Update object handling the cleanup of links tables after a page was deleted.
Definition at line 29 of file LinksDeletionUpdate.php.
LinksDeletionUpdate::__construct | ( | WikiPage | $page, |
$pageId = null , |
|||
$timestamp = null |
|||
) |
WikiPage | $page | Page we are updating |
int | null | $pageId | ID of the page we are updating [optional] |
string | null | $timestamp | TS_MW timestamp of deletion |
MWException |
Definition at line 46 of file LinksDeletionUpdate.php.
References $page, $pageId, $timestamp, WikiPage\exists(), WikiPage\getId(), page, and wfTimestampNow().
Definition at line 194 of file LinksDeletionUpdate.php.
References $res, $services, array(), as, captcha-old\count, getDB(), LIST_AND, and LIST_OR.
Referenced by doUpdate().
LinksDeletionUpdate::doUpdate | ( | ) |
Perform the actual work.
Implements DeferrableUpdate.
Definition at line 61 of file LinksDeletionUpdate.php.
References $pageId, $services, $title, LinksUpdate\acquirePageLock(), DeferredUpdates\addCallableUpdate(), as, batchDeleteByPK(), captcha-old\count, getDB(), Category\newFromName(), NS_CATEGORY, page, RC_LOG, and use.
LinksDeletionUpdate::getAsJobSpecification | ( | ) |
Implements EnqueueableDataUpdate.
Definition at line 226 of file LinksDeletionUpdate.php.
References getDB(), WikiMap\getWikiIdFromDomain(), and page.
|
protected |
Definition at line 218 of file LinksDeletionUpdate.php.
References $db, DB_MASTER, and wfGetDB().
Referenced by batchDeleteByPK(), doUpdate(), and getAsJobSpecification().
|
private |
Definition at line 38 of file LinksDeletionUpdate.php.
Referenced by getDB().
|
protected |
Definition at line 31 of file LinksDeletionUpdate.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file LinksDeletionUpdate.php.
Referenced by __construct(), and doUpdate().
|
protected |
Definition at line 35 of file LinksDeletionUpdate.php.
Referenced by __construct().