Semantic MediaWiki and related extensions
Public Member Functions | Public Attributes | List of all members
SMW\MediaWiki\Jobs\UpdateJob Class Reference
Collaboration diagram for SMW\MediaWiki\Jobs\UpdateJob:
Collaboration graph
[legend]

Public Member Functions

 __construct (Title $title, $params=array())
 
 run ()
 
- Public Member Functions inherited from SMW\MediaWiki\Jobs\JobBase
 setStore (Store $store)
 
 isEnabledJobQueue ($enableJobQueue=true)
 
 pushToJobQueue ()
 
 getType ()
 
 getJobCount ()
 
 getTitle ()
 
 hasParameter ($key)
 
 getParameter ($key)
 
 insert ()
 
 lazyPush ()
 

Public Attributes

const FORCED_UPDATE = 'forcedUpdate'
 

Additional Inherited Members

- Static Public Member Functions inherited from SMW\MediaWiki\Jobs\JobBase
static batchInsert ($jobs)
 
static getQueueSizes ()
 
- Protected Attributes inherited from SMW\MediaWiki\Jobs\JobBase
 $isEnabledJobQueue = true
 
 $jobs = array()
 
 $store = null
 

Detailed Description

UpdateJob is responsible for the asynchronous update of semantic data using MediaWiki's JobQueue infrastructure.

Update jobs are created if, when saving an article, it is detected that the content of other pages must be re-parsed as well (e.g. due to some type change).

Note
This job does not update the page display or parser cache, so in general it might happen that part of the wiki page still displays based on old data (e.g. formatting in-page values based on a datatype thathas since been changed), whereas the Factbox and query/browsing interfaces might already show the updated records.

GNU GPL v2+

Since
1.9
Author
Daniel M. Herzig
Markus Krötzsch
mwjames

Constructor & Destructor Documentation

SMW\MediaWiki\Jobs\UpdateJob::__construct ( Title  $title,
  $params = array() 
)
Since
1.9
Parameters
Title$title
array$params

Member Function Documentation

SMW\MediaWiki\Jobs\UpdateJob::run ( )
See also
Job::run
Returns
boolean

Member Data Documentation

const SMW\MediaWiki\Jobs\UpdateJob::FORCED_UPDATE = 'forcedUpdate'

Enforces an update independent of the update marker status


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