Inherits UploadForm.
Public Member Functions | |
| saveUploadedFile ($saveName, $tempName, $useRename=false) | |
| Move the uploaded file from its temporary location to the final destination. | |
| saveTempUploadedFile ($saveName, $tempName) | |
| Stash a file in a temporary directory for later processing after the user has confirmed it. | |
| stashSession () | |
| Stash a file in a temporary directory for later processing, and save the necessary descriptive info into the session. | |
| unsaveUploadedFile () | |
| Remove a temporarily kept file stashed by saveTempUploadedFile(). | |
Definition at line 25 of file SpecialUploadMogile.php.
| UploadFormMogile::saveTempUploadedFile | ( | $ | saveName, | |
| $ | tempName | |||
| ) |
Stash a file in a temporary directory for later processing after the user has confirmed it.
If the user doesn't explicitly cancel or accept, these files can accumulate in the temp directory.
| string | $saveName - the destination filename | |
| string | $tempName - the source temporary file to save |
Reimplemented from UploadForm.
Definition at line 81 of file SpecialUploadMogile.php.
References $wgOut.
Referenced by stashSession().
| UploadFormMogile::saveUploadedFile | ( | $ | saveName, | |
| $ | tempName, | |||
| $ | useRename = false | |||
| ) |
Move the uploaded file from its temporary location to the final destination.
If a previous version of the file exists, move it into the archive subdirectory.
| string | $saveName | |
| string | $tempName full path to the temporary file | |
| bool | $useRename Not used in this implementation |
Definition at line 37 of file SpecialUploadMogile.php.
References $wgOut.
| UploadFormMogile::stashSession | ( | ) |
Stash a file in a temporary directory for later processing, and save the necessary descriptive info into the session.
Returns a key value which will be passed through a form to pick up the path info on a later invocation.
Reimplemented from UploadForm.
Definition at line 103 of file SpecialUploadMogile.php.
References $key, and saveTempUploadedFile().
| UploadFormMogile::unsaveUploadedFile | ( | ) |
Remove a temporarily kept file stashed by saveTempUploadedFile().
private
Reimplemented from UploadForm.
Definition at line 125 of file SpecialUploadMogile.php.
References $wgOut.
1.5.9