|
| $isEnabledJobQueue = true |
|
| $jobQueue |
|
| $jobs = [] |
|
| $store = null |
|
GNU GPL v2+
- Since
- 1.9
- Author
- mwjames
◆ batchInsert()
static SMW\MediaWiki\Job::batchInsert |
( |
|
$jobs | ) |
|
|
static |
◆ getJobCount()
SMW\MediaWiki\Job::getJobCount |
( |
| ) |
|
◆ getParameter()
SMW\MediaWiki\Job::getParameter |
( |
|
$key, |
|
|
|
$default = false |
|
) |
| |
- Since
- 1.9
- Parameters
-
- Returns
- boolean
◆ getType()
SMW\MediaWiki\Job::getType |
( |
| ) |
|
◆ hasParameter()
SMW\MediaWiki\Job::hasParameter |
( |
|
$key | ) |
|
- Since
- 1.9
- Parameters
-
- Returns
- boolean
◆ ignoreDuplicates()
SMW\MediaWiki\Job::ignoreDuplicates |
( |
| ) |
|
◆ insert()
SMW\MediaWiki\Job::insert |
( |
| ) |
|
◆ isEnabledJobQueue()
SMW\MediaWiki\Job::isEnabledJobQueue |
( |
|
$enableJobQueue = true | ) |
|
Whether to insert jobs into the JobQueue is enabled or not
- Since
- 1.9
- Parameters
-
boolean | true | $enableJobQueue | |
- Returns
- AbstractJob
◆ lazyPush()
SMW\MediaWiki\Job::lazyPush |
( |
| ) |
|
- See also
- JobQueueGroup::lazyPush
- Note
- Registered jobs are pushed using JobQueueGroup::pushLazyJobs at the end of MediaWiki::restInPeace
- Since
- 3.0
◆ newRootJobParams()
static SMW\MediaWiki\Job::newRootJobParams |
( |
|
$key = '' , |
|
|
|
$title = '' |
|
) |
| |
|
static |
◆ pushToJobQueue()
SMW\MediaWiki\Job::pushToJobQueue |
( |
| ) |
|
- Note
- Job::batchInsert was deprecated in MW 1.21 JobQueueGroup::singleton()->push( $job );
- Since
- 1.9
◆ setDelay()
SMW\MediaWiki\Job::setDelay |
( |
|
$delay | ) |
|
- See also
- Translate::TTMServerMessageUpdateJob
- Since
- 3.0
- Parameters
-
◆ setParameter()
SMW\MediaWiki\Job::setParameter |
( |
|
$key, |
|
|
|
$value |
|
) |
| |
◆ setStore()
SMW\MediaWiki\Job::setStore |
( |
Store |
$store | ) |
|
◆ waitOnCommandLineMode()
SMW\MediaWiki\Job::waitOnCommandLineMode |
( |
| ) |
|
Only run the job via commandLine or the cronJob and avoid execution via Special:RunJobs as it can cause the script to timeout.
The documentation for this class was generated from the following file: