[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Backend for uploading files from previously stored file. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 194 lines (5 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
UploadFromStash:: (11 methods):
__construct()
isValidKey()
isValidRequest()
initialize()
initializeFromRequest()
getSourceType()
getTempFileSha1Base36()
stashFile()
stashSession()
unsaveUploadedFile()
performUpload()
Class: UploadFromStash - X-Ref
Implements uploading from previously stored file.__construct( $user = false, $stash = false, $repo = false ) X-Ref |
param: User|bool $user Default: false param: UploadStash|bool $stash Default: false param: FileRepo|bool $repo Default: false |
isValidKey( $key ) X-Ref |
param: string $key return: bool |
isValidRequest( $request ) X-Ref |
param: WebRequest $request return: bool |
initialize( $key, $name = 'upload_file', $initTempFile = true ) X-Ref |
param: string $key param: string $name param: bool $initTempFile |
initializeFromRequest( &$request ) X-Ref |
param: WebRequest $request |
getSourceType() X-Ref |
return: string |
getTempFileSha1Base36() X-Ref |
Get the base 36 SHA1 of the file return: string |
stashFile( User $user = null ) X-Ref |
Stash the file. param: User $user return: UploadStashFile |
stashSession() X-Ref |
This should return the key instead of the UploadStashFile instance, for backward compatibility. return: string |
unsaveUploadedFile() X-Ref |
Remove a temporarily kept file stashed by saveTempUploadedFile(). return: bool Success |
performUpload( $comment, $pageText, $watch, $user ) X-Ref |
Perform the upload, then remove the database record afterward. param: string $comment param: string $pageText param: bool $watch param: User $user return: Status |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |