| 1 |
<?php |
| 2 |
/** |
| 3 |
* PFBC (PHP Form Builder Class) - Third-party library |
| 4 |
* @package PFBC |
| 5 |
*/ |
| 6 |
|
| 7 |
// phpcs:disable WordPress.Security.EscapeOutput, WordPress.NamingConventions.PrefixAllGlobals, PluginCheck.CodeAnalysis.Heredoc -- Third-party library |
| 8 |
|
| 9 |
class Element_Hidden extends Element { |
| 10 |
protected $attributes = array("type" => "hidden"); |
| 11 |
|
| 12 |
public function __construct($name, $value = "", ?array $properties = null) { |
| 13 |
if(!is_array($properties)) |
| 14 |
$properties = array(); |
| 15 |
|
| 16 |
if(!empty($value)) |
| 17 |
$properties["value"] = $value; |
| 18 |
|
| 19 |
parent::__construct("", $name, $properties); |
| 20 |
} |
| 21 |
} |
| 22 |
|