public function __construct($identifier, $label = NULL, $value = NULL, $placeholder = NULL, $rows = NULL)
 {
     if (!isset($placeholder)) {
         $placeholder = $label;
     }
     parent::__construct("field-" . $identifier, new HtmlTextarea($identifier, $value, $placeholder, $rows), $label);
 }
Esempio n. 2
0
 public function __construct($identifier, $label = NULL, $type = "text", $value = NULL, $placeholder = NULL)
 {
     if (!isset($placeholder) && $type === "text") {
         $placeholder = $label;
     }
     parent::__construct("field-" . $identifier, new HtmlInput($identifier, $type, $value, $placeholder), $label);
 }
 public function __construct($identifier, $label = NULL, $value = NULL, $type = NULL)
 {
     parent::__construct("field-" . $identifier, new HtmlCheckbox($identifier, $label, $value, $type));
 }
 public function __construct($identifier, $items = array(), $label = NULL, $value = NULL, $multiple = false)
 {
     parent::__construct("field-" . $identifier, (new HtmlDropdown("dropdown-" . $identifier, $value, $items))->asSelect($identifier, $multiple), $label);
 }