3 * An information field (text blob), not a proper input.
5 class HTMLInfoField
extends HTMLFormField
{
6 public function __construct( $info ) {
7 $info[ 'nodata' ] = true;
9 parent
::__construct( $info );
12 public function getInputHTML( $value ) {
13 return ! empty( $this->mParams
[ 'raw' ] ) ?
$value : htmlspecialchars( $value );
16 public function getTableRow( $value ) {
17 if ( ! empty( $this->mParams
[ 'rawrow' ] ) ) {
21 return parent
::getTableRow( $value );
27 public function getDiv( $value ) {
28 if ( ! empty( $this->mParams
[ 'rawrow' ] ) ) {
32 return parent
::getDiv( $value );
38 public function getRaw( $value ) {
39 if ( ! empty( $this->mParams
[ 'rawrow' ] ) ) {
43 return parent
::getRaw( $value );
46 protected function needsLabel() {