MediaWiki
REL1_19
|
Sub class of HTMLForm that provides the form section of SpecialUpload. More...
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 |
Sub class of HTMLForm that provides the form section of SpecialUpload.
Definition at line 733 of file SpecialUpload.php.
UploadForm::__construct | ( | array $ | options = array() , |
IContextSource $ | context = null |
||
) |
Definition at line 751 of file SpecialUpload.php.
References ContextSource\$context, $options, getDescriptionSection(), getOptionsSection(), getSourceSection(), HTMLForm\setId(), HTMLForm\setSubmitName(), HTMLForm\setSubmitText(), HTMLForm\setSubmitTooltip(), wfMsg(), and wfRunHooks().
UploadForm::addUploadJS | ( | ) | [protected] |
Add upload JS to the OutputPage.
Definition at line 1066 of file SpecialUpload.php.
References $out, $wgAjaxLicensePreview, $wgAjaxUploadDestCheck, $wgEnableAPI, $wgStrictFileExtensions, $wgUseAjax, UploadBase\getMaxUploadSize(), ContextSource\getOutput(), and MWNamespace\isCapitalized().
Referenced by show().
UploadForm::getDescriptionSection | ( | ) | [protected] |
Get the descriptor of the fieldset that contains the file description input.
The section is 'description'
Definition at line 918 of file SpecialUpload.php.
References $file, $wgContLang, $wgUseCopyrightUpload, HTMLForm\addHeaderText(), Html\element(), ContextSource\getUser(), and RepoGroup\singleton().
Referenced by __construct().
UploadForm::getExtensionsMessage | ( | ) | [protected] |
Get the messages indicating which extensions are preferred and prohibitted.
Definition at line 882 of file SpecialUpload.php.
References $wgCheckFileExtensions, $wgFileBlacklist, $wgFileExtensions, $wgStrictFileExtensions, ContextSource\getContext(), ContextSource\getLanguage(), and wfMsgExt().
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'
Definition at line 1016 of file SpecialUpload.php.
References $user, and ContextSource\getUser().
Referenced by __construct().
UploadForm::getSourceSection | ( | ) | [protected] |
Get the descriptor of the fieldset that contains the file source selection.
The section is 'source'
Definition at line 800 of file SpecialUpload.php.
References ContextSource\getContext(), getExtensionsMessage(), ContextSource\getLanguage(), UploadBase\getMaxUploadSize(), ContextSource\getRequest(), ContextSource\getUser(), UploadFromUrl\isAllowed(), UploadFromUrl\isEnabled(), wfIsHipHop(), wfMsgExt(), wfMsgHtml(), wfRunHooks(), and wfShorthandToInteger().
Referenced by __construct().
UploadForm::show | ( | ) |
Add the upload JS and show the form.
Reimplemented from HTMLForm.
Definition at line 1058 of file SpecialUpload.php.
References addUploadJS().
Empty function; submission is handled elsewhere.
Reimplemented from HTMLForm.
Definition at line 1102 of file SpecialUpload.php.
UploadForm::$mComment [protected] |
Definition at line 741 of file SpecialUpload.php.
UploadForm::$mDestFile [protected] |
Definition at line 739 of file SpecialUpload.php.
UploadForm::$mDestWarningAck [protected] |
Definition at line 738 of file SpecialUpload.php.
UploadForm::$mForReUpload [protected] |
Definition at line 735 of file SpecialUpload.php.
UploadForm::$mHideIgnoreWarning [protected] |
Definition at line 737 of file SpecialUpload.php.
UploadForm::$mMaxFileSize = array() [protected] |
Definition at line 747 of file SpecialUpload.php.
UploadForm::$mMaxUploadSize = array() [protected] |
Definition at line 749 of file SpecialUpload.php.
UploadForm::$mSessionKey [protected] |
Definition at line 736 of file SpecialUpload.php.
UploadForm::$mSourceIds [protected] |
Definition at line 745 of file SpecialUpload.php.
UploadForm::$mTextAfterSummary [protected] |
Definition at line 743 of file SpecialUpload.php.
UploadForm::$mTextTop [protected] |
Definition at line 742 of file SpecialUpload.php.
UploadForm::$mWatch [protected] |
Definition at line 734 of file SpecialUpload.php.