MediaWiki
REL1_22
|
Upload a file from the upload stash into the local file repo. More...
Public Member Functions | |
__construct ($title, $params, $id=0) | |
allowRetries () | |
getDeduplicationInfo () | |
Subclasses may need to override this to make duplication detection work. | |
run () | |
Run the job. |
Upload a file from the upload stash into the local file repo.
Definition at line 29 of file PublishStashedFileJob.php.
PublishStashedFileJob::__construct | ( | $ | title, |
$ | params, | ||
$ | id = 0 |
||
) |
Definition at line 30 of file PublishStashedFileJob.php.
References Job\$id, Job\$params, and Job\$title.
Reimplemented from Job.
Definition at line 137 of file PublishStashedFileJob.php.
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.
Reimplemented from Job.
Definition at line 129 of file PublishStashedFileJob.php.
References array().
Run the job.
Reimplemented from Job.
Definition at line 35 of file PublishStashedFileJob.php.
References $upload, $user, array(), RequestContext\getMain(), MWException\getText(), RequestContext\importScopedSession(), Status\newFatal(), Status\newGood(), UploadBase\OK, params, Job\setLastError(), and UploadBase\setSessionStatus().