phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlOption.php
Go to the documentation of this file.
1
<?php
2
namespace
Ajax\common\html\html5
;
3
use
Ajax\common\html\HtmlDoubleElement
;
10
class
HtmlOption
extends
HtmlDoubleElement
{
11
protected
$value
;
12
protected
$selected
;
13
public
function
__construct
(
$identifier
,$caption,
$value
=
""
) {
14
parent::__construct(
$identifier
,
"option"
);
15
$this->_template=
'<option id="%identifier%" value="%value%" %selected% %properties%>%content%</option>'
;
16
$this->content=$caption;
17
$this->value=
$value
;
18
$this->selected=
""
;
19
}
20
21
public
function
select
(){
22
$this->selected=
"selected"
;
23
return
$this;
24
}
25
26
public
function
getValue
() {
27
return
$this->value
;
28
}
29
public
function
setValue
(
$value
) {
30
$this->value =
$value
;
31
return
$this;
32
}
33
34
}
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\common\html\HtmlDoubleElement
Definition
HtmlDoubleElement.php:8
Ajax\common\html\html5\HtmlOption
HTML Select.
Definition
HtmlOption.php:10
Ajax\common\html\html5\HtmlOption\$value
$value
Definition
HtmlOption.php:11
Ajax\common\html\html5\HtmlOption\__construct
__construct($identifier, $caption, $value="")
Definition
HtmlOption.php:13
Ajax\common\html\html5\HtmlOption\$selected
$selected
Definition
HtmlOption.php:12
Ajax\common\html\html5\HtmlOption\select
select()
Definition
HtmlOption.php:21
Ajax\common\html\html5\HtmlOption\setValue
setValue($value)
Definition
HtmlOption.php:29
Ajax\common\html\html5\HtmlOption\getValue
getValue()
Definition
HtmlOption.php:26
Ajax\common\html\html5
Definition
HtmlImg.php:3
Ajax
common
html
html5
HtmlOption.php
Generated on Sun Dec 10 2023 16:15:56 for
phpMv-UI
by
doxygen
1.9.8