MediaWiki
REL1_20
|
Implements uploading from previously stored file. More...
Public Member Functions | |
__construct ($user=false, $stash=false, $repo=false) | |
getSourceType () | |
initialize ($key, $name= 'upload_file') | |
initializeFromRequest (&$request) | |
performUpload ($comment, $pageText, $watch, $user) | |
Perform the upload, then remove the database record afterward. | |
stashFile () | |
Stash the file. | |
stashSession () | |
This should return the key instead of the UploadStashFile instance, for backward compatibility. | |
unsaveUploadedFile () | |
Remove a temporarily kept file stashed by saveTempUploadedFile(). | |
Static Public Member Functions | |
static | isValidKey ($key) |
static | isValidRequest ($request) |
Public Attributes | |
$mFileProps | |
$mSourceType | |
$mVirtualTempPath | |
Protected Attributes | |
$mFileKey | |
Private Attributes | |
$repo | |
$stash |
Implements uploading from previously stored file.
Definition at line 30 of file UploadFromStash.php.
UploadFromStash::__construct | ( | $ | user = false , |
$ | stash = false , |
||
$ | repo = false |
||
) |
$user | User |
$stash | UploadStash |
$repo | FileRepo |
Definition at line 44 of file UploadFromStash.php.
References $repo, $stash, $user, RepoGroup\singleton(), and wfDebug().
UploadFromStash::initialize | ( | $ | key, |
$ | name = 'upload_file' |
||
) |
$key | string |
$name | string |
Definition at line 92 of file UploadFromStash.php.
References UploadBase\getRealPath(), and UploadBase\initializePathInfo().
Referenced by initializeFromRequest().
UploadFromStash::initializeFromRequest | ( | &$ | request | ) |
$request | WebRequest |
Reimplemented from UploadBase.
Definition at line 115 of file UploadFromStash.php.
References initialize().
static UploadFromStash::isValidKey | ( | $ | key | ) | [static] |
$key | string |
Definition at line 71 of file UploadFromStash.php.
References UploadStash\KEY_FORMAT_REGEX.
Referenced by isValidRequest().
static UploadFromStash::isValidRequest | ( | $ | request | ) | [static] |
$request | WebRequest |
Reimplemented from UploadBase.
Definition at line 81 of file UploadFromStash.php.
References isValidKey().
Referenced by UploadStashTest\testValidRequest().
UploadFromStash::performUpload | ( | $ | comment, |
$ | pageText, | ||
$ | watch, | ||
$ | user | ||
) |
Perform the upload, then remove the database record afterward.
$comment | string |
$pageText | string |
$watch | bool |
$user | User |
Reimplemented from UploadBase.
Definition at line 172 of file UploadFromStash.php.
References $comment, $user, and unsaveUploadedFile().
Stash the file.
Reimplemented from UploadBase.
Definition at line 141 of file UploadFromStash.php.
Referenced by stashSession().
This should return the key instead of the UploadStashFile instance, for backward compatibility.
Reimplemented from UploadBase.
Definition at line 152 of file UploadFromStash.php.
References stashFile().
Remove a temporarily kept file stashed by saveTempUploadedFile().
Definition at line 160 of file UploadFromStash.php.
Referenced by performUpload().
UploadFromStash::$mFileKey [protected] |
Definition at line 31 of file UploadFromStash.php.
UploadFromStash::$mFileProps |
Reimplemented from UploadBase.
Definition at line 31 of file UploadFromStash.php.
UploadFromStash::$mSourceType |
Reimplemented from UploadBase.
Definition at line 31 of file UploadFromStash.php.
UploadFromStash::$mVirtualTempPath |
Definition at line 31 of file UploadFromStash.php.
UploadFromStash::$repo [private] |
Definition at line 37 of file UploadFromStash.php.
Referenced by __construct().
UploadFromStash::$stash [private] |
Definition at line 34 of file UploadFromStash.php.
Referenced by __construct().