37 parent::__construct(
'duplicate', $title,
$params );
47 $djob =
new self(
$job->getTitle(),
$job->getParams() );
48 $djob->command =
$job->getType();
49 $djob->params = is_array( $djob->params ) ? $djob->params : [];
50 $djob->params = [
'isDuplicate' =>
true ] + $djob->params;
51 $djob->metadata =
$job->metadata;
56 public function run() {
No-op job that does nothing.
static newFromJob(Job $job)
Get a duplicate no-op version of a job.
__construct(Title $title, array $params)
Callers should use DuplicateJob::newFromJob() instead.
Class to both describe a background job and handle jobs.
array $params
Array of job parameters.
Represents a title within MediaWiki.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
if(count( $args)< 1) $job