Merge "Added more filter options to $wgRCFeeds"
[mediawiki.git] / includes / htmlform / HTMLHiddenField.php
blob003ccfe0f68870ad8c383a42e69e0909511799d8
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://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state
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 * @since 1.20
26 public function getDiv( $value ) {
27 return $this->getTableRow( $value );
30 /**
31 * @since 1.20
33 public function getRaw( $value ) {
34 return $this->getTableRow( $value );
37 public function getInputHTML( $value ) {
38 return '';