Exemplo n.º 1
0
 public function __construct($name, $value = "", array $properties = null)
 {
     if (!is_array($properties)) {
         $properties = array();
     }
     if (!empty($value)) {
         $properties["value"] = $value;
     }
     parent::__construct("", $name, $properties);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public function __construct($label = "", array $properties = null)
 {
     parent::__construct($label, "recaptcha_response_field", $properties);
 }
Exemplo n.º 4
0
 public function __construct($value)
 {
     $properties = array("value" => $value);
     parent::__construct("", "", $properties);
 }