10 if ( !empty( $this->mParams[
'invert'] ) ) {
19 if ( $this->mClass !==
'' ) {
24 if ( isset( $attr[
'title'] ) ) {
26 $attrLabel[
'title'] = $attr[
'title'];
29 $chkLabel = Xml::check( $this->mName,
$value, $attr ) .
31 Html::rawElement(
'label', $attrLabel, $this->mLabel );
34 $chkLabel = Html::rawElement(
36 [
'class' =>
'mw-ui-checkbox' ],
51 if ( !empty( $this->mParams[
'invert'] ) ) {
59 $attr += OOUI\Element::configFromHtmlAttributes(
63 if ( $this->mClass !==
'' ) {
67 $attr[
'selected'] =
$value;
70 return new OOUI\CheckboxInputWidget( $attr );
86 $this->mParent instanceof
HTMLForm &&
117 $invert = isset( $this->mParams[
'invert'] ) && $this->mParams[
'invert'];
125 ? !
$request->getBool( $this->mName )
126 :
$request->getBool( $this->mName );
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
getLabel()
For a checkbox, the label goes on the right hand side, and is added in getInputHTML(),...
loadDataFromRequest( $request)
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
getLabelAlignOOUI()
Get label alignment when generating field for OOUI.
getInputOOUI( $value)
Get the OOUI version of this field.
needsLabel()
checkboxes don't need a label.
do that in ParserLimitReportFormat instead use this to modify the parameters of the image all existing parser cache entries will be invalid To avoid you ll need to handle that somehow(e.g. with the RejectParserCacheValue hook) because MediaWiki won 't do it for you. & $defaults also a ContextSource after deleting those rows but within the same transaction you ll probably need to make sure the header is varied on $request