20 $info[
'nodata'] =
true;
22 parent::__construct( $info );
30 $default = parent::getDefault();
31 if ( $default instanceof Closure ) {
32 $default = $default( $this->mParams );
42 return !empty( $this->mParams[
'raw'] ) ? $value : htmlspecialchars( $value );
50 if ( !empty( $this->mParams[
'raw'] ) ) {
51 $value =
new OOUI\HtmlSnippet( $value );
54 return new OOUI\LabelWidget( [
65 if ( !empty( $this->mParams[
'rawrow'] ) ) {
69 return parent::getTableRow( $value );
79 if ( !empty( $this->mParams[
'rawrow'] ) ) {
83 return parent::getDiv( $value );
93 if ( !empty( $this->mParams[
'rawrow'] ) ) {
97 return parent::getRaw( $value );
107 if ( !empty( $this->mParams[
'rawrow'] ) ) {
108 if ( !( $value instanceof OOUI\FieldLayout ) ) {
109 wfDeprecatedMsg( __METHOD__ .
": 'default' parameter as a string when using " .
110 "'rawrow' was deprecated in MediaWiki 1.32 (must be a FieldLayout or subclass)",
116 return parent::getOOUI( $value );
wfDeprecatedMsg( $msg, $version=false, $component=false, $callerOffset=2)
Log a deprecation warning with arbitrary message text.
An information field (text blob), not a proper input.
getTableRow( $value)
Get the complete table row for the input, including help text, labels, and whatever....
getDefault()
to override mixed
getInputOOUI( $value)
Same as getInputHTML, but returns an OOUI object.Defaults to false, which getOOUI will interpret as "...
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself....
needsLabel()
Should this field have a label, or is there no input element with the appropriate id for the label to...