BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
RefreshLinksJob Class Reference
Inheritance diagram for RefreshLinksJob:
Collaboration diagram for RefreshLinksJob:

Public Member Functions

 __construct (Title $title, array $params)
 
 run ()
 
 getDeduplicationInfo ()
 
 workItemCount ()
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Static Public Member Functions

static newPrioritized (Title $title, array $params)
 
static newDynamic (Title $title, array $params)
 
- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 

Public Attributes

const PARSE_THRESHOLD_SEC = 1.0
 
const CLOCK_FUDGE = 10
 
- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 

Protected Member Functions

 waitForMasterPosition ()
 
 runForTitle (Title $title)
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 

Additional Inherited Members

- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

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 (recursive:true,table:
    set.
  • b) Jobs to update links for a set of pages (the job title is ignored). These jobs 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.

Member Function Documentation

RefreshLinksJob::getDeduplicationInfo ( )

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

Implements IJobSpecification.

static RefreshLinksJob::newDynamic ( Title  $title,
array  $params 
)
static
Parameters
Title$title
array$params
Returns
RefreshLinksJob
static RefreshLinksJob::newPrioritized ( Title  $title,
array  $params 
)
static
Parameters
Title$title
array$params
Returns
RefreshLinksJob
RefreshLinksJob::runForTitle ( Title  $title)
protected
Parameters
Title$title
Returns
bool

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