Special:BlockList: Use mw-ui-progressive for search button
[mediawiki.git] / includes / htmlform / HTMLHiddenField.php
blobe32c0bb2cedf7d72e446ce28a679541ecaf8c7f4
1 <?php
3 class HTMLHiddenField extends HTMLFormField {
4 public function __construct( $params ) {
5 parent::__construct( $params );
7 # Per HTML5 spec, hidden fields cannot be 'required'
8 # http://www.w3.org/TR/html5/forms.html#hidden-state-%28type=hidden%29
9 unset( $this->mParams['required'] );
12 public function getTableRow( $value ) {
13 $params = array();
14 if ( $this->mID ) {
15 $params['id'] = $this->mID;
18 $this->mParent->addHiddenField( $this->mName, $this->mDefault, $params );
20 return '';
23 /**
24 * @param string $value
25 * @return string
26 * @since 1.20
28 public function getDiv( $value ) {
29 return $this->getTableRow( $value );
32 /**
33 * @param string $value
34 * @return string
35 * @since 1.20
37 public function getRaw( $value ) {
38 return $this->getTableRow( $value );
41 public function getInputHTML( $value ) {
42 return '';