Пример #1
0
 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);
 }
Пример #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);
 }
Пример #3
0
 public function __construct($identifier, $label = NULL, $value = NULL, $type = NULL)
 {
     parent::__construct("field-" . $identifier, new HtmlCheckbox($identifier, $label, $value, $type));
 }
Пример #4
0
 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);
 }