phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
HtmlElementAsContent.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\bootstrap\html\base
;
4
5
use
Ajax\JsUtils
;
6
use
Ajax\common\html\BaseHtml
;
7
use
Ajax\common\html\HtmlSingleElement
;
8
9
class
HtmlElementAsContent
extends
BaseHtml
{
10
14
protected
$element
;
15
16
public
function
__construct
(
$element
) {
17
if
(
$element
instanceof
HtmlSingleElement
) {
18
$this->element=
$element
;
19
} elseif (is_string(
$element
)) {
20
$this->element=
new
HtmlBsDoubleElement
(
$element
);
21
}
22
$this->identifier=
$element
->getIdentifier();
23
}
24
25
public
function
getElement
() {
26
return
$this->element
;
27
}
28
29
public
function
setElement
(
$element
) {
30
$this->element=
$element
;
31
return
$this;
32
}
33
34
public
function
addBadge
($caption, $leftSeparator=
" "
) {
35
return
$this->element->addBadge($caption,$leftSeparator);
36
}
37
38
public
function
addLabel
($caption, $style=
"label-default"
, $leftSeparator=
" "
) {
39
return
$this->element->addLabel($caption,$style,$leftSeparator);
40
}
41
42
public
function
run
(
JsUtils
$js) {
43
$this->element->run($js);
44
}
45
}
Ajax\common\html\BaseHtml
BaseHtml for HTML components.
Definition:
BaseHtml.php:17
Ajax\bootstrap\html\base\HtmlElementAsContent\__construct
__construct($element)
Definition:
HtmlElementAsContent.php:16
Ajax\bootstrap\html\base\HtmlElementAsContent\addLabel
addLabel($caption, $style="label-default", $leftSeparator=" ")
Definition:
HtmlElementAsContent.php:38
Ajax\bootstrap\html\base\HtmlElementAsContent\run
run(JsUtils $js)
Definition:
HtmlElementAsContent.php:42
HtmlSingleElement
Ajax\bootstrap\html\base
Definition:
CssButton.php:2
Ajax\bootstrap\html\base\HtmlElementAsContent\$element
$element
Definition:
HtmlElementAsContent.php:14
Ajax\bootstrap\html\base\HtmlBsDoubleElement
Definition:
HtmlBsDoubleElement.php:10
Ajax\bootstrap\html\base\HtmlElementAsContent\addBadge
addBadge($caption, $leftSeparator=" ")
Definition:
HtmlElementAsContent.php:34
Ajax\bootstrap\html\base\HtmlElementAsContent\setElement
setElement($element)
Definition:
HtmlElementAsContent.php:29
Ajax\bootstrap\html\base\HtmlElementAsContent
Definition:
HtmlElementAsContent.php:9
Ajax\common\html\HtmlSingleElement
Definition:
HtmlSingleElement.php:7
Ajax\JsUtils
JQuery PHP library.
Definition:
JsUtils.php:23
Ajax\bootstrap\html\base\HtmlElementAsContent\getElement
getElement()
Definition:
HtmlElementAsContent.php:25
JsUtils
BaseHtml
Ajax
bootstrap
html
base
HtmlElementAsContent.php
Generated on Thu Sep 19 2024 23:26:03 for
phpMv-UI
by
doxygen
1.8.13