MediaWiki  REL1_23
RefreshLinksJob Class Reference

Job to update link tables for pages. More...

Inheritance diagram for RefreshLinksJob:
Collaboration diagram for RefreshLinksJob:

List of all members.

Public Member Functions

 __construct ($title, $params= '')
 getDeduplicationInfo ()
 Subclasses may need to override this to make duplication detection work.
 run ()
 Run the job.
 workItemCount ()

Public Attributes

const PARSE_THRESHOLD_SEC = 1.0

Protected Member Functions

 runForTitle (Title $title=null)

Detailed Description

Job to update link tables for pages.

This job comes in a few variants:

  • a) Recursive jobs to update links for backlink pages for a given title. These jobs have have (recursive:true,table:
    set.
  • b) Jobs to update links for a set of pages (the job title is ignored). These jobs have have (pages:(<page id>="">:(<namespace>,<title>),...) set.
  • c) Jobs to update links for a single page (the job title) These jobs need no extra fields set.

Definition at line 37 of file RefreshLinksJob.php.


Constructor & Destructor Documentation

RefreshLinksJob::__construct ( title,
params = '' 
)

Definition at line 40 of file RefreshLinksJob.php.

References Job\$params, and Job\$title.


Member Function Documentation

Subclasses may need to override this to make duplication detection work.

The resulting map conveys everything that makes the job unique. This is only checked if ignoreDuplicates() returns true, meaning that duplicate jobs are supposed to be ignored.

Returns:
array Map of key/values
Since:
1.21

Reimplemented from Job.

Definition at line 180 of file RefreshLinksJob.php.

Returns:
integer Number of actually "work items" handled in this job
See also:
$wgJobBackoffThrottling
Since:
1.23

Reimplemented from Job.

Definition at line 196 of file RefreshLinksJob.php.


Member Data Documentation

Definition at line 38 of file RefreshLinksJob.php.


The documentation for this class was generated from the following file: