UploadForm Class Reference

Sub class of HTMLForm that provides the form section of SpecialUpload. More...

Inherits HTMLForm.

List of all members.

Public Member Functions

 __construct ($options=array())
 show ()
 Add the upload JS and show the form.
 trySubmit ()
 Empty function; submission is handled elsewhere.

Protected Member Functions

 getSourceSection ()
 Get the descriptor of the fieldset that contains the file source selection.
 getExtensionsMessage ()
 Get the messages indicating which extensions are preferred and prohibitted.
 getDescriptionSection ()
 Get the descriptor of the fieldset that contains the file description input.
 getOptionsSection ()
 Get the descriptor of the fieldset that contains the upload options, such as "watch this file".
 addUploadJS ()
 Add upload JS to $wgOut.

Protected Attributes

 $mWatch
 $mForReUpload
 $mSessionKey
 $mHideIgnoreWarning
 $mDestWarningAck
 $mDestFile
 $mTextTop
 $mTextAfterSummary
 $mSourceIds


Detailed Description

Sub class of HTMLForm that provides the form section of SpecialUpload.

Definition at line 689 of file SpecialUpload.php.


Constructor & Destructor Documentation

UploadForm::__construct ( options = array()  ) 


Member Function Documentation

UploadForm::addUploadJS (  )  [protected]

Add upload JS to $wgOut.

Parameters:
bool $autofill Whether or not to autofill the destination filename text box

Definition at line 996 of file SpecialUpload.php.

References $wgAjaxLicensePreview, $wgAjaxUploadDestCheck, $wgEnableAPI, $wgOut, $wgUseAjax, and Skin::makeVariablesScript().

Referenced by show().

UploadForm::getDescriptionSection (  )  [protected]

Get the descriptor of the fieldset that contains the file description input.

The section is 'description'

Returns:
array Descriptor array

Definition at line 861 of file SpecialUpload.php.

References $wgOut, $wgUseCopyrightUpload, and $wgUser.

Referenced by __construct().

UploadForm::getExtensionsMessage (  )  [protected]

Get the messages indicating which extensions are preferred and prohibitted.

Returns:
string HTML string containing the message

Definition at line 824 of file SpecialUpload.php.

References $wgCheckFileExtensions, $wgFileBlacklist, $wgFileExtensions, $wgLang, $wgStrictFileExtensions, and wfMsgWikiHtml().

Referenced by getSourceSection().

UploadForm::getOptionsSection (  )  [protected]

Get the descriptor of the fieldset that contains the upload options, such as "watch this file".

The section is 'options'

Returns:
array Descriptor array

Definition at line 941 of file SpecialUpload.php.

References $wgOut, and $wgUser.

Referenced by __construct().

UploadForm::getSourceSection (  )  [protected]

Get the descriptor of the fieldset that contains the file source selection.

The section is 'source'

Returns:
array Descriptor array

Definition at line 745 of file SpecialUpload.php.

References $wgLang, $wgMaxUploadSize, $wgRequest, $wgUser, getExtensionsMessage(), UploadFromUrl::isEnabled(), wfMsgExt(), wfMsgHtml(), wfRunHooks(), and wfShorthandToInteger().

Referenced by __construct().

UploadForm::show (  ) 

Add the upload JS and show the form.

Definition at line 985 of file SpecialUpload.php.

References addUploadJS().

UploadForm::trySubmit (  ) 

Empty function; submission is handled elsewhere.

Returns:
bool false

Definition at line 1025 of file SpecialUpload.php.


Member Data Documentation

UploadForm::$mDestFile [protected]

Definition at line 695 of file SpecialUpload.php.

UploadForm::$mDestWarningAck [protected]

Definition at line 694 of file SpecialUpload.php.

UploadForm::$mForReUpload [protected]

Definition at line 691 of file SpecialUpload.php.

UploadForm::$mHideIgnoreWarning [protected]

Definition at line 693 of file SpecialUpload.php.

UploadForm::$mSessionKey [protected]

Definition at line 692 of file SpecialUpload.php.

UploadForm::$mSourceIds [protected]

Definition at line 700 of file SpecialUpload.php.

UploadForm::$mTextAfterSummary [protected]

Definition at line 698 of file SpecialUpload.php.

UploadForm::$mTextTop [protected]

Definition at line 697 of file SpecialUpload.php.

UploadForm::$mWatch [protected]

Definition at line 690 of file SpecialUpload.php.


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

Generated on Sat Apr 30 22:57:51 2011 for MediaWiki by  doxygen 1.5.9