phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlCheckbox.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
8 
9  public function __construct($identifier, $label=NULL, $value=NULL, $checkboxType=NULL) {
10  parent::__construct($identifier, $identifier, $label, $value, "checkbox", "checkbox");
11  if (isset($checkboxType)) {
12  $this->setType($checkboxType);
13  }
14  }
15 
16  public static function slider($identifier, $label="", $value=NULL) {
17  return new HtmlCheckbox($identifier, $label, $value, CheckboxType::SLIDER);
18  }
19 
20  public static function toggle($identifier, $label="", $value=NULL) {
21  return new HtmlCheckbox($identifier, $label, $value, CheckboxType::TOGGLE);
22  }
23 }
static slider($identifier, $label="", $value=NULL)
__construct($identifier, $label=NULL, $value=NULL, $checkboxType=NULL)
Definition: HtmlCheckbox.php:9
static toggle($identifier, $label="", $value=NULL)