MediaWiki  REL1_24
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)
 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 
)

Callers should use DuplicateJob::newFromJob() instead.

Parameters:
Title$title
array$paramsJob parameters

Definition at line 36 of file DuplicateJob.php.

References 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 46 of file DuplicateJob.php.

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

Run the job.

Returns:
bool Success

Reimplemented from Job.

Definition at line 56 of file DuplicateJob.php.


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