public function __construct($name, $value = "", array $properties = null) { if (!is_array($properties)) { $properties = array(); } if (!empty($value)) { $properties["value"] = $value; } parent::__construct("", $name, $properties); }
public function __construct($label = "Submit", $type = "", array $properties = null) { if (!is_array($properties)) { $properties = array(); } if (!empty($type)) { $properties["type"] = $type; } $class = "btn"; if (empty($type) || $type == "submit") { $class .= " btn-primary"; } if (!empty($properties["class"])) { $properties["class"] .= " " . $class; } else { $properties["class"] = $class; } if (empty($properties["value"])) { $properties["value"] = $label; } parent::__construct("", "", $properties); }
public function __construct($label = "", array $properties = null) { parent::__construct($label, "recaptcha_response_field", $properties); }
public function __construct($value) { $properties = array("value" => $value); parent::__construct("", "", $properties); }