MediaWiki
1.30.0
|
Public Member Functions | |
__construct ( $parser) | |
extractOptions ( $text) | |
Extract options from a blob of text. More... | |
getCommentForm () | |
Generate new section form. More... | |
getCreateForm () | |
Generate create page form. More... | |
getMoveForm () | |
Generate move page form. More... | |
getSearchForm ( $type) | |
Generate search form. More... | |
getSearchForm2 () | |
Generate search form version 2. More... | |
isValidColor ( $color) | |
Do a security check on the bgcolor parameter. More... | |
render () | |
Private Member Functions | |
bgColorStyle () | |
getEditActionArgs () | |
getLinebreakClasses () | |
Get common classes, that could be added and depend on, if a line break between a button and an input field is added or not. More... | |
languageConvert ( $text) | |
For compatability with pre T119158 behaviour. More... | |
shouldUseVE () | |
Returns true, if the VisualEditor is requested from the inputbox wikitext definition and if the VisualEditor extension is actually installed or not, false otherwise. More... | |
Private Attributes | |
$mBGColor = 'transparent' | |
$mBR = 'yes' | |
$mButtonLabel = '' | |
$mDefaultText = '' | |
$mDir = '' | |
$mEditIntro = null | |
$mFullTextButton = '' | |
$mHidden = '' | |
$mID = '' | |
$mInline = false | |
$mLabelText = '' | |
$mMinor = null | |
$mNamespaces = '' | |
$mNosummary = null | |
$mPage = '' | |
$mParser | |
$mPlaceholderText = '' | |
$mPrefix = '' | |
$mPreload = null | |
$mPreloadparams = null | |
$mSearchButtonLabel = '' | |
$mSearchFilter = '' | |
$mSummary = null | |
$mTour = '' | |
$mType = '' | |
$mUseVE = null | |
$mWidth = 50 | |
Definition at line 10 of file InputBox.classes.php.
InputBox::__construct | ( | $parser | ) |
Definition at line 44 of file InputBox.classes.php.
References $parser.
|
private |
Definition at line 681 of file InputBox.classes.php.
Referenced by getCommentForm(), getCreateForm(), getMoveForm(), getSearchForm(), and getSearchForm2().
InputBox::extractOptions | ( | $text | ) |
Extract options from a blob of text.
string | $text | Tag contents |
Definition at line 584 of file InputBox.classes.php.
References $line, $name, $options, $value, as, isValidColor(), languageConvert(), list, and true.
InputBox::getCommentForm | ( | ) |
Generate new section form.
Definition at line 514 of file InputBox.classes.php.
References $mBR, $wgScript, as, bgColorStyle(), Xml::closeElement(), getEditActionArgs(), getLinebreakClasses(), global, Html::hidden(), Xml::openElement(), and wfMessage().
Referenced by render().
InputBox::getCreateForm | ( | ) |
Generate create page form.
Definition at line 370 of file InputBox.classes.php.
References $mBR, $wgScript, as, bgColorStyle(), Xml::closeElement(), getEditActionArgs(), getLinebreakClasses(), global, Html::hidden(), Xml::openElement(), and wfMessage().
Referenced by render().
|
private |
Definition at line 94 of file InputBox.classes.php.
References $args, and shouldUseVE().
Referenced by getCommentForm(), and getCreateForm().
|
private |
Get common classes, that could be added and depend on, if a line break between a button and an input field is added or not.
Definition at line 116 of file InputBox.classes.php.
Referenced by getCommentForm(), getCreateForm(), getMoveForm(), and getSearchForm().
InputBox::getMoveForm | ( | ) |
Generate move page form.
Definition at line 458 of file InputBox.classes.php.
References $mBR, $wgScript, bgColorStyle(), Xml::closeElement(), getLinebreakClasses(), SpecialPage::getTitleFor(), global, Html::hidden(), Xml::openElement(), and wfMessage().
Referenced by render().
InputBox::getSearchForm | ( | $type | ) |
Generate search form.
$type |
Definition at line 125 of file InputBox.classes.php.
References $mBR, $name, $namespaces, $type, $wgContLang, $wgNamespaceAliases, as, bgColorStyle(), Xml::closeElement(), captcha-old::count, Xml::element(), getLinebreakClasses(), SpecialPage::getTitleFor(), global, Html::hidden(), Xml::label(), Xml::openElement(), wfMessage(), and wfRandom().
Referenced by render().
InputBox::getSearchForm2 | ( | ) |
Generate search form version 2.
Definition at line 292 of file InputBox.classes.php.
References $mID, $mLabelText, bgColorStyle(), Xml::closeElement(), Xml::element(), SpecialPage::getTitleFor(), Xml::openElement(), wfMessage(), and wfRandom().
Referenced by render().
InputBox::isValidColor | ( | $color | ) |
Do a security check on the bgcolor parameter.
Definition at line 666 of file InputBox.classes.php.
References a, color, and names.
Referenced by extractOptions().
|
private |
For compatability with pre T119158 behaviour.
If a field that is going to be used as an attribute and it contains "-{" in it, run it through language converter.
Its not really clear if it would make more sense to always convert instead of only if -{ is present. This function just more or less restores the previous accidental behaviour.
Definition at line 712 of file InputBox.classes.php.
Referenced by extractOptions().
InputBox::render | ( | ) |
Definition at line 58 of file InputBox.classes.php.
References Xml::element(), getCommentForm(), getCreateForm(), getMoveForm(), getSearchForm(), getSearchForm2(), Xml::tags(), text, and wfMessage().
|
private |
Returns true, if the VisualEditor is requested from the inputbox wikitext definition and if the VisualEditor extension is actually installed or not, false otherwise.
Definition at line 694 of file InputBox.classes.php.
References ExtensionRegistry::getInstance().
Referenced by getEditActionArgs().
|
private |
Definition at line 28 of file InputBox.classes.php.
|
private |
Definition at line 25 of file InputBox.classes.php.
Referenced by getCommentForm(), getCreateForm(), getMoveForm(), and getSearchForm().
|
private |
Definition at line 29 of file InputBox.classes.php.
|
private |
Definition at line 26 of file InputBox.classes.php.
|
private |
Definition at line 38 of file InputBox.classes.php.
|
private |
Definition at line 19 of file InputBox.classes.php.
|
private |
Definition at line 31 of file InputBox.classes.php.
|
private |
Definition at line 33 of file InputBox.classes.php.
|
private |
Definition at line 35 of file InputBox.classes.php.
Referenced by getSearchForm2().
|
private |
Definition at line 36 of file InputBox.classes.php.
|
private |
Definition at line 32 of file InputBox.classes.php.
Referenced by getSearchForm2().
|
private |
Definition at line 23 of file InputBox.classes.php.
|
private |
Definition at line 34 of file InputBox.classes.php.
|
private |
Definition at line 22 of file InputBox.classes.php.
|
private |
Definition at line 24 of file InputBox.classes.php.
|
private |
Definition at line 14 of file InputBox.classes.php.
|
private |
Definition at line 27 of file InputBox.classes.php.
|
private |
Definition at line 37 of file InputBox.classes.php.
|
private |
Definition at line 17 of file InputBox.classes.php.
|
private |
Definition at line 18 of file InputBox.classes.php.
|
private |
Definition at line 30 of file InputBox.classes.php.
|
private |
Definition at line 39 of file InputBox.classes.php.
|
private |
Definition at line 21 of file InputBox.classes.php.
|
private |
Definition at line 40 of file InputBox.classes.php.
|
private |
Definition at line 15 of file InputBox.classes.php.
|
private |
Definition at line 20 of file InputBox.classes.php.
|
private |
Definition at line 16 of file InputBox.classes.php.