phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
SemanticHtmlElementsTrait.php
Go to the documentation of this file.
1<?php
3
28
30
31 abstract public function addHtmlComponent(BaseHtml $htmlComponent);
32
33 public function addState($state, $elements) {
34 State::add($state, $elements);
35 }
36
48 public function htmlButton($identifier, $value = null, $cssStyle = null, $onClick = null) {
49 return $this->addHtmlComponent(new HtmlButton($identifier, $value, $cssStyle, $onClick));
50 }
51
62 public function htmlButtonGroups($identifier, $elements = array(), $asIcons = false) {
63 return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
64 }
65
75 public function htmlContainer($identifier, $content = "") {
76 return $this->addHtmlComponent(new HtmlContainer($identifier, $content));
77 }
78
88 public function htmlDivider($identifier, $content = "", $tagName = "div") {
89 return $this->addHtmlComponent(new HtmlDivider($identifier, $content, $tagName));
90 }
91
103 public function htmlHeader($identifier, $niveau = 1, $content = NULL, $type = "page") {
104 return $this->addHtmlComponent(new HtmlHeader($identifier, $niveau, $content, $type));
105 }
106
116 public function htmlIcon($identifier, $icon) {
117 return $this->addHtmlComponent(new HtmlIcon($identifier, $icon));
118 }
119
131 public function htmlImage($identifier, $src = "", $alt = "", $size = NULL) {
132 return $this->addHtmlComponent(new HtmlImage($identifier, $src, $alt, $size));
133 }
134
145 public function htmlIconGroups($identifier, $icons = array(), $size = "") {
146 return $this->addHtmlComponent(new HtmlIconGroups($identifier, $icons, $size));
147 }
148
160 public function htmlInput($identifier, $type = "text", $value = "", $placeholder = "") {
161 return $this->addHtmlComponent(new HtmlInput($identifier, $type, $value, $placeholder));
162 }
163
174 public function htmlLabel($identifier, $content = "", $icon = NULL, $tagName = "div") {
175 return $this->addHtmlComponent(new HtmlLabel($identifier, $content, $icon, $tagName));
176 }
177
185 public function htmlLabelGroups($identifier, $labels = array(), $attributes = array()) {
186 return $this->addHtmlComponent(new HtmlLabelGroups($identifier, $labels, $attributes));
187 }
188
196 public function htmlList($identifier, $items = array()) {
197 return $this->addHtmlComponent(new HtmlList($identifier, $items));
198 }
199
207 public function htmlSegment($identifier, $content = "") {
208 return $this->addHtmlComponent(new HtmlSegment($identifier, $content));
209 }
210
219 public function htmlSegmentGroups($identifier, $items = array()) {
220 return $this->addHtmlComponent(new HtmlSegmentGroups($identifier, $items));
221 }
222
233 public function htmlReveal($identifier, $visibleContent, $hiddenContent, $type = RevealType::FADE, $attributeType = NULL) {
234 return $this->addHtmlComponent(new HtmlReveal($identifier, $visibleContent, $hiddenContent, $type, $attributeType));
235 }
236
244 public function htmlStep($identifier, $steps = array()) {
245 return $this->addHtmlComponent(new HtmlStep($identifier, $steps));
246 }
247
256 public function htmlFlag($identifier, $flag) {
257 return $this->addHtmlComponent(new HtmlFlag($identifier, $flag));
258 }
259
267 public function htmlEmoji($identifier, $emoji) {
268 return $this->addHtmlComponent(new HtmlEmoji($identifier, $emoji));
269 }
270
278 public function htmlRail($identifier, $content = null) {
279 return $this->addHtmlComponent(new HtmlRail($identifier, $content));
280 }
281}
BaseHtml for HTML components.
Definition BaseHtml.php:17
Base class for Semantic double elements.
Semantic UI Buttongroups component.
Semantic Button component.
Semantic UI container component.
Semantic UI divider component.
Semantic Emoji component Ajax\semantic\html\elements$HtmlIcon This class is part of phpMv-ui.
Definition HtmlEmoji.php:16
Semantic Flag component.
Definition HtmlFlag.php:15
Semantic Header component.
Semantic Icons group component.
Semantic Icon component.
Definition HtmlIcon.php:14
Semantic Image component.
Definition HtmlImage.php:16
Semantic Label component.
Definition HtmlLabel.php:20
htmlEmoji($identifier, $emoji)
Returns a new Semantic Emoji.
htmlStep($identifier, $steps=array())
Returns a new Semantic Step.
htmlSegmentGroups($identifier, $items=array())
Adds a group of segments.
htmlImage($identifier, $src="", $alt="", $size=NULL)
Returns a new Semantic image.
htmlList($identifier, $items=array())
Returns a new Semantic list.
htmlContainer($identifier, $content="")
Returns a new Semantic container.
htmlIcon($identifier, $icon)
Returns a new Semantic icon.
htmlSegment($identifier, $content="")
Adds a new segment, used to create a grouping of related content.
htmlIconGroups($identifier, $icons=array(), $size="")
Returns a new Semantic group of images.
htmlFlag($identifier, $flag)
Returns a new Semantic Flag.
htmlRail($identifier, $content=null)
Returns a new Semantic Rail.
htmlLabel($identifier, $content="", $icon=NULL, $tagName="div")
Returns a new Semantic label.
htmlLabelGroups($identifier, $labels=array(), $attributes=array())
htmlHeader($identifier, $niveau=1, $content=NULL, $type="page")
Returns a new Semantic header.
htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL)
Returns a new Semantic Reveal.
htmlDivider($identifier, $content="", $tagName="div")
Returns a new Semantic divider.
htmlButton($identifier, $value=null, $cssStyle=null, $onClick=null)
Return a new Semantic Html Button.
htmlInput($identifier, $type="text", $value="", $placeholder="")
Returns a new Semantic html input.
htmlButtonGroups($identifier, $elements=array(), $asIcons=false)
Returns a group of Semantic buttons.