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

Public Member Functions

 __construct (Title $title, $params=[])
 
 run ()
 
- Public Member Functions inherited from SMW\MediaWiki\Job
 setStore (Store $store)
 
 isEnabledJobQueue ( $enableJobQueue=true)
 
 pushToJobQueue ()
 
 getType ()
 
 getJobCount ()
 
 hasParameter ( $key)
 
 getParameter ( $key, $default=false)
 
 setParameter ( $key, $value)
 
 insert ()
 
 lazyPush ()
 
 setDelay ( $delay)
 
 ignoreDuplicates ()
 
 waitOnCommandLineMode ()
 

Public Attributes

const FORCED_UPDATE = 'forcedUpdate'
 
const CHANGE_PROP = 'changeProp'
 
const SEMANTIC_DATA = 'semanticData'
 

Additional Inherited Members

- Static Public Member Functions inherited from SMW\MediaWiki\Job
static batchInsert ( $jobs)
 
static newRootJobParams ( $key='', $title='')
 
- Protected Member Functions inherited from SMW\MediaWiki\Job
 getJobQueue ()
 
- Protected Attributes inherited from SMW\MediaWiki\Job
 $isEnabledJobQueue = true
 
 $jobQueue
 
 $jobs = []
 
 $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 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

◆ __construct()

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

Member Function Documentation

◆ run()

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

Member Data Documentation

◆ CHANGE_PROP

const SMW\MediaWiki\Jobs\UpdateJob::CHANGE_PROP = 'changeProp'

Indicates the use of the _CHGPRO property as base for the SemanticData

◆ FORCED_UPDATE

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

Enforces an update independent of the update marker status

◆ SEMANTIC_DATA

const SMW\MediaWiki\Jobs\UpdateJob::SEMANTIC_DATA = 'semanticData'

Indicates the use of the semanticData parameter


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

About | General disclaimer | Privacy policy