phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlElementAsContent.php
Go to the documentation of this file.
1<?php
2
4
8
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="&nbsp;") {
35 return $this->element->addBadge($caption,$leftSeparator);
36 }
37
38 public function addLabel($caption, $style="label-default", $leftSeparator="&nbsp;") {
39 return $this->element->addLabel($caption,$style,$leftSeparator);
40 }
41
42 public function run(JsUtils $js) {
43 $this->element->run($js);
44 }
45}
JQuery PHP library.
Definition JsUtils.php:23
addBadge($caption, $leftSeparator="&nbsp;")
addLabel($caption, $style="label-default", $leftSeparator="&nbsp;")
BaseHtml for HTML components.
Definition BaseHtml.php:17