Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (26 sloc) 0.514 kB
<?php
/**
* Hidden field.
*
* @package forms
* @subpackage fields-dataless
*/
class HiddenField extends FormField {
public function FieldHolder($properties = array()) {
return $this->Field($properties);
}
public function performReadonlyTransformation() {
$clone = clone $this;
$clone->setReadonly(true);
return $clone;
}
public function IsHidden() {
return true;
}
public function getAttributes() {
return array_merge(
parent::getAttributes(),
array('type' => 'hidden')
);
}
}
Jump to Line
Something went wrong with that request. Please try again.