MediaWiki  REL1_22
DuplicateJob Class Reference

No-op job that does nothing. More...

Inheritance diagram for DuplicateJob:
Collaboration diagram for DuplicateJob:

List of all members.

Public Member Functions

 __construct ($title, $params, $id=0)
 Callers should use DuplicateJob::newFromJob() instead.
 run ()
 Run the job.

Static Public Member Functions

static newFromJob (Job $job)
 Get a duplicate no-op version of a job.

Detailed Description

No-op job that does nothing.

Used to represent duplicates.

Definition at line 29 of file DuplicateJob.php.


Constructor & Destructor Documentation

DuplicateJob::__construct ( title,
params,
id = 0 
)

Callers should use DuplicateJob::newFromJob() instead.

Parameters:
$titleTitle
array$paramsjob parameters
$idInteger: job id

Definition at line 37 of file DuplicateJob.php.

References Job\$id, Job\$params, and Job\$title.


Member Function Documentation

static DuplicateJob::newFromJob ( Job job) [static]

Get a duplicate no-op version of a job.

Parameters:
Job$job
Returns:
Job

Definition at line 47 of file DuplicateJob.php.

References array(), Job\getParams(), Job\getTitle(), and Job\getType().

Run the job.

Returns:
boolean success

Reimplemented from Job.

Definition at line 56 of file DuplicateJob.php.


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