SMWUpdateJob Class Reference
[Semantic MediaWiki]

SMWUpdateJob updates the semantic data in the database for a given title using the MediaWiki JobQueue. More...

List of all members.

Public Member Functions

 __construct (Title $title)
 run ()
 Run job.
 insert ()
 This actually files the job.


Detailed Description

SMWUpdateJob updates the semantic data in the database for a given title using the MediaWiki JobQueue.

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.

Definition at line 24 of file SMW_UpdateJob.php.


Constructor & Destructor Documentation

SMWUpdateJob::__construct ( Title $  title  ) 

Definition at line 26 of file SMW_UpdateJob.php.


Member Function Documentation

SMWUpdateJob::run (  ) 

Run job.

Returns:
boolean success

Definition at line 34 of file SMW_UpdateJob.php.

References public::error(), smwfGetStore(), and SMWParseData::storeData().

SMWUpdateJob::insert (  ) 

This actually files the job.

This is prevented if the configuration of SMW disables jobs.

Note:
Any method that inserts jobs with Job::batchInsert or otherwise must implement this check individually. The below is not called in these cases.

Definition at line 78 of file SMW_UpdateJob.php.

References $smwgEnableUpdateJobs.


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

Generated on Sun Mar 18 07:15:45 2012 for Semantic MediaWiki by  doxygen 1.5.6