4 * An information field (text blob), not a proper input.
6 class HTMLInfoField
extends HTMLFormField
{
7 public function __construct( $info ) {
8 $info['nodata'] = true;
10 parent
::__construct( $info );
13 public function getInputHTML( $value ) {
14 return !empty( $this->mParams
['raw'] ) ?
$value : htmlspecialchars( $value );
17 public function getTableRow( $value ) {
18 if ( !empty( $this->mParams
['rawrow'] ) ) {
22 return parent
::getTableRow( $value );
26 * @param string $value
30 public function getDiv( $value ) {
31 if ( !empty( $this->mParams
['rawrow'] ) ) {
35 return parent
::getDiv( $value );
39 * @param string $value
43 public function getRaw( $value ) {
44 if ( !empty( $this->mParams
['rawrow'] ) ) {
48 return parent
::getRaw( $value );
51 protected function needsLabel() {