phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlFormCheckbox.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\collections\form
;
4
5
use
Ajax\semantic\html\base\constants\CheckboxType
;
6
use
Ajax\semantic\html\modules\checkbox\HtmlCheckbox
;
7
use
Ajax\semantic\html\collections\form\traits\CheckboxTrait
;
8
15
class
HtmlFormCheckbox
extends
HtmlFormField
,
CheckboxTrait
{
16
public
function
__construct
(
$identifier
, $label=NULL, $value=NULL, $type=NULL) {
17
parent::__construct(
"field-"
.
$identifier
,
new
HtmlCheckbox
(
$identifier
,$label,$value,$type));
18
$this->_identifier=
$identifier
;
19
}
20
21
public
static
function
slider
(
$identifier
, $label=
""
, $value=NULL) {
22
return
new
HtmlFormCheckbox
(
$identifier
, $label, $value,
CheckboxType::SLIDER
);
23
}
24
25
public
static
function
toggle
(
$identifier
, $label=
""
, $value=NULL) {
26
return
new
HtmlFormCheckbox
(
$identifier
, $label, $value,
CheckboxType::TOGGLE
);
27
}
28
}
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\semantic\html\base\constants\CheckboxType
Definition
CheckboxType.php:7
Ajax\semantic\html\base\constants\CheckboxType\SLIDER
const SLIDER
Definition
CheckboxType.php:8
Ajax\semantic\html\base\constants\CheckboxType\TOGGLE
const TOGGLE
Definition
CheckboxType.php:8
Ajax\semantic\html\collections\form\HtmlFormCheckbox
Semantic Checkbox component.
Definition
HtmlFormCheckbox.php:15
Ajax\semantic\html\collections\form\HtmlFormCheckbox\toggle
static toggle($identifier, $label="", $value=NULL)
Definition
HtmlFormCheckbox.php:25
Ajax\semantic\html\collections\form\HtmlFormCheckbox\slider
static slider($identifier, $label="", $value=NULL)
Definition
HtmlFormCheckbox.php:21
Ajax\semantic\html\collections\form\HtmlFormCheckbox\__construct
__construct($identifier, $label=NULL, $value=NULL, $type=NULL)
Definition
HtmlFormCheckbox.php:16
Ajax\semantic\html\collections\form\HtmlFormField
Definition
HtmlFormField.php:15
Ajax\semantic\html\collections\form\traits\CheckboxTrait
Definition
CheckboxTrait.php:13
Ajax\semantic\html\modules\checkbox\HtmlCheckbox
Definition
HtmlCheckbox.php:7
Ajax\semantic\html\collections\form
Definition
HtmlForm.php:3
Ajax
semantic
html
collections
form
HtmlFormCheckbox.php
Generated on Sun Dec 10 2023 16:16:04 for
phpMv-UI
by
doxygen
1.9.8