18 $this->mClass .=
' mw-htmlform-flatlist';
23 $p = parent::validate(
$value, $alldata );
30 return $this->
msg(
'htmlform-required' );
38 return $this->
msg(
'htmlform-select-badoption' );
61 'label' => $this->mOptionsLabelsNotFromMessage ?
new OOUI\HtmlSnippet( $label ) : $label,
66 'name' => $this->mName,
70 ] + OOUI\Element::configFromHtmlAttributes(
81 $elementFunc = [ Html::class, $this->mOptionsLabelsNotFromMessage ?
'rawElement' :
'element' ];
83 # @todo Should this produce an unordered list perhaps?
84 foreach (
$options as $label => $info ) {
86 $html .= Html::rawElement(
'h1', [], $label ) .
"\n";
89 $id = Sanitizer::escapeIdForAttribute( $this->mID .
"-$info" );
90 $classes = [
'mw-htmlform-flatlist-item' ];
92 $classes[] =
'mw-ui-radio';
94 $radio = Xml::radio( $this->mName, $info, $info ===
$value,
$attribs + [
'id' => $id ] );
95 $radio .=
"\u{00A0}" .
call_user_func( $elementFunc,
'label', [
'for' => $id ], $label );
97 $html .=
' ' . Html::rawElement(
99 [
'class' => $classes ],
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
needsLabel()
Should this field have a label, or is there no input element with the appropriate id for the label to...
validate( $value, $alldata)
Override this function to add specific validation checks on the field input.
formatOptions( $options, $value)
getInputHTML( $value)
This returns a block of all the radio options, in one cell.
getInputOOUI( $value)
Same as getInputHTML, but returns an OOUI object.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs
$data
Utility to generate mapping file used in mw.Title (phpCharToUpper.json)