MediaWiki
REL1_24
|
Upload a file from the upload stash into the local file repo. More...
Public Member Functions | |
__construct ($title, $params) | |
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 | ||
) |
Definition at line 30 of file PublishStashedFileJob.php.
References Job\$params, and Job\$title.
Reimplemented from Job.
Definition at line 147 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 138 of file PublishStashedFileJob.php.
References array().
Run the job.
Reimplemented from Job.
Definition at line 35 of file PublishStashedFileJob.php.
References $e, $upload, $user, array(), RequestContext\getMain(), MWException\getText(), RequestContext\importScopedSession(), Status\newFatal(), Status\newGood(), UploadBase\OK, MWExceptionHandler\rollbackMasterChangesAndLog(), Job\setLastError(), and UploadBase\setSessionStatus().