| 1 |
<?php |
| 2 |
class Element_Hidden extends Element { |
| 3 |
protected $attributes = array("type" => "hidden"); |
| 4 |
|
| 5 |
public function __construct($name, $value = "", array $properties = null) { |
| 6 |
if(!is_array($properties)) |
| 7 |
$properties = array(); |
| 8 |
|
| 9 |
if(!empty($value)) |
| 10 |
$properties["value"] = $value; |
| 11 |
|
| 12 |
parent::__construct("", $name, $properties); |
| 13 |
} |
| 14 |
} |
| 15 |
|