Inherits HTMLForm.
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 | |
Definition at line 689 of file SpecialUpload.php.
| UploadForm::__construct | ( | $ | options = array() |
) |
Definition at line 702 of file SpecialUpload.php.
References $options, $wgLang, getDescriptionSection(), getOptionsSection(), getSourceSection(), wfMsg(), and wfRunHooks().
| UploadForm::addUploadJS | ( | ) | [protected] |
Add upload JS to $wgOut.
| 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'
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.
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'
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'
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.
Definition at line 1025 of file SpecialUpload.php.
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.
1.5.9