MediaWiki  1.23.14
HTMLHiddenField.php
Go to the documentation of this file.
1 <?php
2 
4  public function __construct( $params ) {
5  parent::__construct( $params );
6 
7  # Per HTML5 spec, hidden fields cannot be 'required'
8  # http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state
9  unset( $this->mParams['required'] );
10  }
11 
12  public function getTableRow( $value ) {
13  $params = array();
14  if ( $this->mID ) {
15  $params['id'] = $this->mID;
16  }
17 
18  $this->mParent->addHiddenField( $this->mName, $this->mDefault, $params );
19 
20  return '';
21  }
22 
26  public function getDiv( $value ) {
27  return $this->getTableRow( $value );
28  }
29 
33  public function getRaw( $value ) {
34  return $this->getTableRow( $value );
35  }
36 
37  public function getInputHTML( $value ) {
38  return '';
39  }
40 }
HTMLHiddenField\getRaw
getRaw( $value)
Definition: HTMLHiddenField.php:33
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
$params
$params
Definition: styleTest.css.php:40
HTMLFormField
The parent class to generate form fields.
Definition: HTMLFormField.php:7
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
HTMLFormField\$mID
$mID
Definition: HTMLFormField.php:14
$value
$value
Definition: styleTest.css.php:45
HTMLHiddenField\__construct
__construct( $params)
Initialise the object.
Definition: HTMLHiddenField.php:4
HTMLHiddenField
Definition: HTMLHiddenField.php:3
HTMLHiddenField\getDiv
getDiv( $value)
Definition: HTMLHiddenField.php:26
HTMLHiddenField\getTableRow
getTableRow( $value)
Get the complete table row for the input, including help text, labels, and whatever.
Definition: HTMLHiddenField.php:12
HTMLHiddenField\getInputHTML
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
Definition: HTMLHiddenField.php:37