MediaWiki
REL1_24
|
00001 <?php 00002 00006 class HTMLInfoField extends HTMLFormField { 00007 public function __construct( $info ) { 00008 $info['nodata'] = true; 00009 00010 parent::__construct( $info ); 00011 } 00012 00013 public function getInputHTML( $value ) { 00014 return !empty( $this->mParams['raw'] ) ? $value : htmlspecialchars( $value ); 00015 } 00016 00017 public function getTableRow( $value ) { 00018 if ( !empty( $this->mParams['rawrow'] ) ) { 00019 return $value; 00020 } 00021 00022 return parent::getTableRow( $value ); 00023 } 00024 00030 public function getDiv( $value ) { 00031 if ( !empty( $this->mParams['rawrow'] ) ) { 00032 return $value; 00033 } 00034 00035 return parent::getDiv( $value ); 00036 } 00037 00043 public function getRaw( $value ) { 00044 if ( !empty( $this->mParams['rawrow'] ) ) { 00045 return $value; 00046 } 00047 00048 return parent::getRaw( $value ); 00049 } 00050 00051 protected function needsLabel() { 00052 return false; 00053 } 00054 }