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( [
64 if ( !empty( $this->mParams[
'rawrow'] ) ) {
68 return parent::getTableRow( $value );
78 if ( !empty( $this->mParams[
'rawrow'] ) ) {
82 return parent::getDiv( $value );
92 if ( !empty( $this->mParams[
'rawrow'] ) ) {
96 return parent::getRaw( $value );
106 if ( !empty( $this->mParams[
'rawrow'] ) ) {
107 if ( !( $value instanceof OOUI\FieldLayout ) ) {
108 wfDeprecatedMsg( __METHOD__ .
": 'default' parameter as a string when using " .
109 "'rawrow' was deprecated in MediaWiki 1.32 (must be a FieldLayout or subclass)",
115 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....
getOOUI( $value)
Stable to override.
getDiv( $value)
Stable to override.
getDefault()
Stable to override.mixed Stable to override
getRaw( $value)
Stable to override.
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...
__construct( $info)
Stable to call.