MediaWiki
REL1_21
|
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 127 of file PublishStashedFileJob.php.
Subclasses may need to override this to make duplication detection work.
Reimplemented from Job.
Definition at line 119 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, Job\setLastError(), and UploadBase\setSessionStatus().