UploadFormMogile Class Reference
[SpecialPage]

Extends Special:Upload with MogileFS. More...

Inherits UploadForm.

List of all members.

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().


Detailed Description

Extends Special:Upload with MogileFS.

Definition at line 25 of file SpecialUploadMogile.php.


Member Function Documentation

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.

Parameters:
string $saveName - the destination filename
string $tempName - the source temporary file to save
Returns:
string - full path the stashed file, or false on failure
Access:
private

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.

Todo:
If the later save fails, we may have disappeared the original file.
Parameters:
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.

Returns:
int
Access:
private

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

Returns:
success

Reimplemented from UploadForm.

Definition at line 125 of file SpecialUploadMogile.php.

References $wgOut.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:49 2009 for MediaWiki by  doxygen 1.5.9