MediaWiki
1.33.1
|
Job queue task description base code. More...
Public Member Functions | |
__construct ( $type, array $params, array $opts=[], Title $title=null) | |
getDeduplicationInfo () | |
Subclasses may need to override this to make duplication detection work. More... | |
getParams () | |
getReleaseTimestamp () | |
getRootJobParams () | |
getTitle () | |
getType () | |
hasRootJobParams () | |
ignoreDuplicates () | |
isRootJob () | |
toSerializableArray () | |
Static Public Member Functions | |
static | newFromArray (array $map) |
Protected Member Functions | |
validateParams (array $params) | |
Protected Attributes | |
array | $opts |
array | $params |
Array of job parameters or false if none. More... | |
Title | $title |
string | $type |
Job queue task description base code.
Example usage:
Definition at line 40 of file JobSpecification.php.
string | $type | |
array | $params | Map of key/values |
array | $opts | Map of key/values; includes 'removeDuplicates' |
Title | null | $title | Optional descriptive title |
Definition at line 59 of file JobSpecification.php.
References $opts, $params, $type, Title\makeTitle(), NS_SPECIAL, captcha-old\opts, title, type, and validateParams().
JobSpecification::getDeduplicationInfo | ( | ) |
Subclasses may need to override this to make duplication detection work.
The resulting map conveys everything that makes the job unique. This is only checked if ignoreDuplicates() returns true, meaning that duplicate jobs are supposed to be ignored.
Implements IJobSpecification.
Definition at line 106 of file JobSpecification.php.
References getParams(), getTitle(), and getType().
JobSpecification::getParams | ( | ) |
Implements IJobSpecification.
Definition at line 92 of file JobSpecification.php.
References $params.
Referenced by getDeduplicationInfo().
JobSpecification::getReleaseTimestamp | ( | ) |
Implements IJobSpecification.
Definition at line 96 of file JobSpecification.php.
References wfTimestampOrNull().
JobSpecification::getRootJobParams | ( | ) |
Implements IJobSpecification.
Definition at line 124 of file JobSpecification.php.
References null.
JobSpecification::getTitle | ( | ) |
Implements IJobSpecification.
Definition at line 88 of file JobSpecification.php.
References $title.
Referenced by getDeduplicationInfo().
JobSpecification::getType | ( | ) |
Implements IJobSpecification.
Definition at line 84 of file JobSpecification.php.
References $type.
Referenced by getDeduplicationInfo().
JobSpecification::hasRootJobParams | ( | ) |
Implements IJobSpecification.
Definition at line 131 of file JobSpecification.php.
Referenced by isRootJob().
JobSpecification::ignoreDuplicates | ( | ) |
Implements IJobSpecification.
Definition at line 102 of file JobSpecification.php.
References captcha-old\opts.
JobSpecification::isRootJob | ( | ) |
Implements IJobSpecification.
Definition at line 136 of file JobSpecification.php.
References hasRootJobParams().
|
static |
array | $map | Field/value map |
Definition at line 161 of file JobSpecification.php.
References $title, and Title\makeTitle().
Referenced by EnqueueJob\run().
JobSpecification::toSerializableArray | ( | ) |
|
protected |
array | $params |
Definition at line 74 of file JobSpecification.php.
Referenced by __construct().
|
protected |
Definition at line 51 of file JobSpecification.php.
Referenced by __construct(), and toSerializableArray().
|
protected |
Array of job parameters or false if none.
Definition at line 45 of file JobSpecification.php.
Referenced by __construct(), getParams(), toSerializableArray(), and validateParams().
|
protected |
Definition at line 48 of file JobSpecification.php.
Referenced by getTitle(), and newFromArray().
|
protected |
Definition at line 42 of file JobSpecification.php.
Referenced by __construct(), getType(), and toSerializableArray().