36 parent::__construct(
'deleteLinks', $title,
$params );
37 $this->removeDuplicates =
true;
41 if ( is_null( $this->title ) ) {
46 $pageId = $this->params[
'pageId'];
51 if ( WikiPage::newFromID( $pageId, WikiPage::READ_LATEST ) ) {
53 $this->
setLastError(
"deleteLinks: Page #$pageId exists" );
57 $factory = MediaWikiServices::getInstance()->getDBLoadBalancerFactory();
58 $timestamp = isset( $this->params[
'timestamp'] ) ? $this->params[
'timestamp'] :
null;
59 $page = WikiPage::factory( $this->title );
62 $update->setTransactionTicket( $factory->getEmptyTransactionTicket( __METHOD__ ) );
wfGetDB( $db, $groups=[], $wiki=false)
Get a Database object.
Job to prune link tables for pages that were deleted.
__construct(Title $title, array $params)
Class to both describe a background job and handle jobs.
array $params
Array of job parameters.
Update object handling the cleanup of links tables after a page was deleted.
static acquirePageLock(IDatabase $dbw, $pageId, $why='atomicity')
Acquire a lock for performing link table updates for a page on a DB.
Represents a title within MediaWiki.