BlueSpice MediaWiki REL1_27
 All Classes Namespaces Files Functions Variables Groups Pages
SMW\MediaWiki\Jobs\JobBase Class Reference
Inheritance diagram for SMW\MediaWiki\Jobs\JobBase:
Collaboration diagram for SMW\MediaWiki\Jobs\JobBase:

Public Member Functions

 setStore (Store $store)
 
 setJobQueueEnabledState ($enableJobQueue=true)
 
 pushToJobQueue ()
 
 getType ()
 
 getJobCount ()
 
 getTitle ()
 
 hasParameter ($key)
 
 getParameter ($key)
 
- Public Member Functions inherited from Job
 run ()
 
 __construct ($command, $title, $params=false)
 
 getType ()
 
 getTitle ()
 
 getParams ()
 
 getReleaseTimestamp ()
 
 getQueuedTimestamp ()
 
 getRequestId ()
 
 getReadyTimestamp ()
 
 ignoreDuplicates ()
 
 allowRetries ()
 
 workItemCount ()
 
 getDeduplicationInfo ()
 
 getRootJobParams ()
 
 hasRootJobParams ()
 
 isRootJob ()
 
 teardown ()
 
 insert ()
 
 toString ()
 
 getLastError ()
 

Static Public Member Functions

static batchInsert ($jobs)
 
- Static Public Member Functions inherited from Job
static factory ($command, Title $title, $params=[])
 
static batchInsert ($jobs)
 
static newRootJobParams ($key)
 

Protected Attributes

 $enabledJobQueue = true
 
 $jobs = array()
 
 $store = null
 
- Protected Attributes inherited from Job
 $title
 
 $removeDuplicates
 
 $error
 
 $teardownCallbacks = []
 

Additional Inherited Members

- Public Attributes inherited from Job
 $command
 
 $params
 
 $metadata = []
 
- Protected Member Functions inherited from Job
 addTeardownCallback ($callback)
 
 setLastError ($error)
 

Detailed Description

GNU GPL v2+

Since
1.9
Author
mwjames

Member Function Documentation

static SMW\MediaWiki\Jobs\JobBase::batchInsert (   $jobs)
static
SMW\MediaWiki\Jobs\JobBase::getJobCount ( )
Since
2.0
Returns
integer
SMW\MediaWiki\Jobs\JobBase::getParameter (   $key)

Returns a parameter value for a given key

Since
1.9
Parameters
mixed$key
Returns
boolean
SMW\MediaWiki\Jobs\JobBase::getTitle ( )
Note
Job::getTitle() in MW 1.19 does not exist
Since
1.9
Returns
Title

Implements IJobSpecification.

SMW\MediaWiki\Jobs\JobBase::getType ( )
Note
Job::getType was introduced with MW 1.21
Returns
string

Implements IJobSpecification.

SMW\MediaWiki\Jobs\JobBase::hasParameter (   $key)

Whether the parameters contain an element for a given key

Since
1.9
Parameters
mixed$key
Returns
boolean
SMW\MediaWiki\Jobs\JobBase::pushToJobQueue ( )
Note
Job::batchInsert was deprecated in MW 1.21 JobQueueGroup::singleton()->push( $job );
Since
1.9
SMW\MediaWiki\Jobs\JobBase::setJobQueueEnabledState (   $enableJobQueue = true)

Whether to insert jobs into the JobQueue is enabled or not

Since
1.9
Parameters
boolean | true$enableJobQueue
Returns
JobBase
SMW\MediaWiki\Jobs\JobBase::setStore ( Store  $store)
Since
2.1
Parameters
Store$store

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