MediaWiki  1.23.2
HTMLInfoField.php
Go to the documentation of this file.
1 <?php
2 
6 class HTMLInfoField extends HTMLFormField {
7  public function __construct( $info ) {
8  $info['nodata'] = true;
9 
10  parent::__construct( $info );
11  }
12 
13  public function getInputHTML( $value ) {
14  return !empty( $this->mParams['raw'] ) ? $value : htmlspecialchars( $value );
15  }
16 
17  public function getTableRow( $value ) {
18  if ( !empty( $this->mParams['rawrow'] ) ) {
19  return $value;
20  }
21 
22  return parent::getTableRow( $value );
23  }
24 
28  public function getDiv( $value ) {
29  if ( !empty( $this->mParams['rawrow'] ) ) {
30  return $value;
31  }
32 
33  return parent::getDiv( $value );
34  }
35 
39  public function getRaw( $value ) {
40  if ( !empty( $this->mParams['rawrow'] ) ) {
41  return $value;
42  }
43 
44  return parent::getRaw( $value );
45  }
46 
47  protected function needsLabel() {
48  return false;
49  }
50 }
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
HTMLInfoField\getInputHTML
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
Definition: HTMLInfoField.php:13
HTMLInfoField\__construct
__construct( $info)
Initialise the object.
Definition: HTMLInfoField.php:7
HTMLInfoField\getRaw
getRaw( $value)
Definition: HTMLInfoField.php:39
HTMLFormField
The parent class to generate form fields.
Definition: HTMLFormField.php:7
HTMLInfoField\needsLabel
needsLabel()
Should this field have a label, or is there no input element with the appropriate id for the label to...
Definition: HTMLInfoField.php:47
HTMLInfoField
An information field (text blob), not a proper input.
Definition: HTMLInfoField.php:6
$value
$value
Definition: styleTest.css.php:45
HTMLInfoField\getTableRow
getTableRow( $value)
Get the complete table row for the input, including help text, labels, and whatever.
Definition: HTMLInfoField.php:17
HTMLInfoField\getDiv
getDiv( $value)
Definition: HTMLInfoField.php:28