2 class HTMLHiddenField
extends HTMLFormField
{
3 public function __construct( $params ) {
4 parent
::__construct( $params );
6 # Per HTML5 spec, hidden fields cannot be 'required'
7 # http://dev.w3.org/html5/spec/states-of-the-type-attribute.html#hidden-state
8 unset( $this->mParams
[ 'required' ] );
11 public function getTableRow( $value ) {
14 $params[ 'id' ] = $this->mID
;
17 $this->mParent
->addHiddenField( $this->mName
, $this->mDefault
, $params );
25 public function getDiv( $value ) {
26 return $this->getTableRow( $value );
32 public function getRaw( $value ) {
33 return $this->getTableRow( $value );
36 public function getInputHTML( $value ) {