phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlCheckbox.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\modules\checkbox
;
4
5
use
Ajax\semantic\html\base\constants\CheckboxType
;
6
7
class
HtmlCheckbox
extends
AbstractCheckbox
{
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
}
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\semantic\html\base\constants\CheckboxType
Definition
CheckboxType.php:7
Ajax\semantic\html\modules\checkbox\AbstractCheckbox
Definition
AbstractCheckbox.php:8
Ajax\semantic\html\modules\checkbox\AbstractCheckbox\setType
setType($checkboxType)
Definition
AbstractCheckbox.php:37
Ajax\semantic\html\modules\checkbox\HtmlCheckbox
Definition
HtmlCheckbox.php:7
Ajax\semantic\html\modules\checkbox\HtmlCheckbox\__construct
__construct($identifier, $label=NULL, $value=NULL, $checkboxType=NULL)
Definition
HtmlCheckbox.php:9
Ajax\semantic\html\modules\checkbox\HtmlCheckbox\toggle
static toggle($identifier, $label="", $value=NULL)
Definition
HtmlCheckbox.php:20
Ajax\semantic\html\modules\checkbox\HtmlCheckbox\slider
static slider($identifier, $label="", $value=NULL)
Definition
HtmlCheckbox.php:16
Ajax\semantic\html\modules\checkbox
Definition
AbstractCheckbox.php:2
Ajax
semantic
html
modules
checkbox
HtmlCheckbox.php
Generated on Sun Dec 10 2023 16:16:08 for
phpMv-UI
by
doxygen
1.9.8