Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct ( $title, $params=[ 'spos'=> 1, 'prog'=> 0, 'rc'=> 1]) | |
run () | |
getProgress () | |
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 () | |
Protected Member Functions | |
refreshData ( $spos) | |
createNextJob (array $parameters) | |
getNamespace ( $run) | |
Protected Member Functions inherited from SMW\MediaWiki\Job | |
getJobQueue () | |
Additional Inherited Members | |
Static Public Member Functions inherited from SMW\MediaWiki\Job | |
static | batchInsert ( $jobs) |
static | newRootJobParams ( $key='', $title='') |
Protected Attributes inherited from SMW\MediaWiki\Job | |
$isEnabledJobQueue = true | |
$jobQueue | |
$jobs = [] | |
$store = null | |
RefreshJob iterates over all page ids of the wiki, to perform an update action for all of them in sequence. This corresponds to the in-wiki version of the SMW_refreshData.php script for updating the whole wiki.
GNU GPL v2+
SMW\MediaWiki\Jobs\RefreshJob::__construct | ( | $title, | |
$params = [ 'spos' = , |
|||
1 | , | ||
'prog' | , | ||
0 | , | ||
'rc' | , | ||
1] | |||
) |
Constructor. The parameters optionally specified in the second argument of this constructor use the following array keys:
If more than one run is done, then the first run will restrict to properties and types. The progress indication refers to the current run, not to the overall job.
Title | $title | |
array | $params |
SMW\MediaWiki\Jobs\RefreshJob::getProgress | ( | ) |
Report the estimated progress status of this job as a number between 0 and 1 (0% to 100%). The progress refers to the state before processing this job.
|
protected |
$spos | start index |
SMW\MediaWiki\Jobs\RefreshJob::run | ( | ) |