MediaWiki  REL1_24
UploadForm Class Reference

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

Inheritance diagram for UploadForm:
Collaboration diagram for UploadForm:

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 $mComment
 $mDestFile
 $mDestWarningAck
 $mForReUpload
 $mHideIgnoreWarning
 $mMaxFileSize = array()
 $mMaxUploadSize = array()
 $mSessionKey
 $mSourceIds
 $mTextAfterSummary
 $mTextTop
 $mWatch

Detailed Description

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

Definition at line 751 of file SpecialUpload.php.


Constructor & Destructor Documentation

UploadForm::__construct ( array options = array(),
IContextSource context = null 
)

Definition at line 769 of file SpecialUpload.php.


Member Function Documentation

UploadForm::addUploadJS ( ) [protected]

Add upload JS to the OutputPage.

Definition at line 1119 of file SpecialUpload.php.

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

The section is 'description'

Returns:
array Descriptor array

Definition at line 971 of file SpecialUpload.php.

References $e, $wgContLang, HTMLForm\addHeaderText(), array(), Html\element(), ContextSource\getConfig(), ContextSource\getUser(), global, in, of, and RepoGroup\singleton().

Get the messages indicating which extensions are preferred and prohibitted.

Returns:
string HTML string containing the message

Definition at line 920 of file SpecialUpload.php.

Referenced by getSourceSection().

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 1069 of file SpecialUpload.php.

References $user, array(), and ContextSource\getUser().

Add the upload JS and show the form.

Reimplemented from HTMLForm.

Definition at line 1111 of file SpecialUpload.php.

Empty function; submission is handled elsewhere.

Returns:
bool False

Reimplemented from HTMLForm.

Definition at line 1154 of file SpecialUpload.php.


Member Data Documentation

UploadForm::$mComment [protected]

Definition at line 759 of file SpecialUpload.php.

UploadForm::$mDestFile [protected]

Definition at line 757 of file SpecialUpload.php.

UploadForm::$mDestWarningAck [protected]

Definition at line 756 of file SpecialUpload.php.

UploadForm::$mForReUpload [protected]

Definition at line 753 of file SpecialUpload.php.

UploadForm::$mHideIgnoreWarning [protected]

Definition at line 755 of file SpecialUpload.php.

UploadForm::$mMaxFileSize = array() [protected]

Definition at line 765 of file SpecialUpload.php.

UploadForm::$mMaxUploadSize = array() [protected]

Definition at line 767 of file SpecialUpload.php.

UploadForm::$mSessionKey [protected]

Definition at line 754 of file SpecialUpload.php.

UploadForm::$mSourceIds [protected]

Definition at line 763 of file SpecialUpload.php.

UploadForm::$mTextAfterSummary [protected]

Definition at line 761 of file SpecialUpload.php.

UploadForm::$mTextTop [protected]

Definition at line 760 of file SpecialUpload.php.

UploadForm::$mWatch [protected]

Definition at line 752 of file SpecialUpload.php.


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