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) | |
getAsJobSpecification () | |
![]() | |
__construct (PageIdentity $page, ParserOutput $parserOutput, $recursive=true) | |
doUpdate () | |
Update link tables with outgoing links from an updated article. More... | |
getAddedExternalLinks () | |
Fetch external links added by this LinksUpdate. More... | |
getAddedLinks () | |
Fetch page links added by this LinksUpdate. More... | |
getAddedProperties () | |
Fetch page properties added by this LinksUpdate. More... | |
getImages () | |
Return the list of images used as generated by the parser. More... | |
getPageId () | |
Get the page_id of the page being updated. More... | |
getPageReferenceArray ( $tableName, $setType) | |
Same as getPageReferenceIterator() but converted to an array for convenience (at the expense of additional time and memory usage) More... | |
getPageReferenceIterator ( $tableName, $setType) | |
Get an iterator over PageReferenceValue objects corresponding to a given set type in a given table. More... | |
getParserOutput () | |
Returns parser output. More... | |
getRemovedExternalLinks () | |
Fetch external links removed by this LinksUpdate. More... | |
getRemovedLinks () | |
Fetch page links removed by this LinksUpdate. More... | |
getRemovedProperties () | |
Fetch page properties removed by this LinksUpdate. More... | |
getRevisionRecord () | |
getTitle () | |
Return the title object of the page being updated. More... | |
getTriggeringUser () | |
Get the user who triggered this LinksUpdate. More... | |
isRecursive () | |
Whether or not this LinksUpdate will also update pages which transclude the current page or otherwise depend on it. More... | |
setMoveDetails (PageReference $oldPage) | |
Notify LinksUpdate that a move has just been completed and set the original title. More... | |
setRevisionRecord (RevisionRecord $revisionRecord) | |
Set the RevisionRecord corresponding to this LinksUpdate. More... | |
setStrictTestMode ( $mode=true) | |
Omit conflict resolution options from the insert query so that testing can confirm that the incremental update logic was correct. More... | |
setTransactionTicket ( $ticket) | |
setTriggeringUser (UserIdentity $user) | |
Set the user who triggered this LinksUpdate. More... | |
![]() | |
__construct () | |
getCauseAction () | |
getCauseAgent () | |
setCause ( $action, $user) | |
Protected Member Functions | |
doIncrementalUpdate () | |
![]() | |
getDB () | |
getExternalLinksTable () | |
getPageLinksTable () | |
getPagePropsTable () | |
queueRecursiveJobs () | |
Queue recursive jobs for this page. More... | |
updateLinksTimestamp () | |
Update links table freshness. More... | |
Protected Attributes | |
WikiPage | $page |
string | $timestamp |
![]() | |
int | $mId |
Page ID of the article linked from. More... | |
ParserOutput | $mParserOutput |
bool | $mRecursive |
Whether to queue jobs for recursive updates. More... | |
Title | $mTitle |
Title object of the article linked from. More... | |
![]() | |
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... | |
Additional Inherited Members | |
![]() | |
static | acquirePageLock (IDatabase $dbw, $pageId, $why='atomicity') |
Acquire a session-level lock for performing link table updates for a page on a DB. More... | |
static | queueRecursiveJobsForTable (PageIdentity $page, $table, $action='LinksUpdate', $userName='unknown', ?BacklinkCache $backlinkCache=null) |
Queue a RefreshLinks job for any table. More... | |
Update object handling the cleanup of links tables after a page was deleted.
Definition at line 39 of file LinksDeletionUpdate.php.
MediaWiki\Deferred\LinksUpdate\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 51 of file LinksDeletionUpdate.php.
References MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\$page, MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\$timestamp, WikiPage\exists(), WikiPage\getId(), WikiPage\getTitle(), and wfTimestampNow().
|
protected |
Reimplemented from MediaWiki\Deferred\LinksUpdate\LinksUpdate.
Definition at line 70 of file LinksDeletionUpdate.php.
References MediaWiki\Deferred\LinksUpdate\LinksUpdate\$mId, MediaWiki\Deferred\LinksUpdate\LinksUpdate\$mTitle, $title, DeferredUpdates\addCallableUpdate(), MediaWiki\Deferred\LinksUpdate\LinksUpdate\getDB(), MediaWiki\MediaWikiServices\getInstance(), MediaWiki\Category\Category\newFromName(), NS_CATEGORY, RC_LOG, and MediaWiki\MainConfigNames\UpdateRowsPerQuery.
MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate::getAsJobSpecification | ( | ) |
Implements EnqueueableDataUpdate.
Definition at line 120 of file LinksDeletionUpdate.php.
References MediaWiki\Deferred\LinksUpdate\LinksUpdate\getDB().
|
protected |
Definition at line 41 of file LinksDeletionUpdate.php.
Referenced by MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\__construct().
|
protected |
Definition at line 43 of file LinksDeletionUpdate.php.
Referenced by MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\__construct().