phpMv  -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
SemanticHtmlElementsTrait.php
Go to the documentation of this file.
1 <?php
2 namespace Ajax\semantic\traits;
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 }
Semantic Emoji component Ajax$HtmlIcon This class is part of phpMv-ui.
Definition: HtmlEmoji.php:16
Semantic Icons group component.
BaseHtml for HTML components.
Definition: BaseHtml.php:17
htmlFlag($identifier, $flag)
Returns a new Semantic Flag.
Semantic Button component.
Definition: HtmlButton.php:18
htmlEmoji($identifier, $emoji)
Returns a new Semantic Emoji.
htmlDivider($identifier, $content="", $tagName="div")
Returns a new Semantic divider.
Semantic Label component.
Definition: HtmlLabel.php:20
htmlInput($identifier, $type="text", $value="", $placeholder="")
Returns a new Semantic html input.
Semantic Segment element.
Definition: HtmlSegment.php:20
htmlSegment($identifier, $content="")
Adds a new segment, used to create a grouping of related content.
htmlButton($identifier, $value=null, $cssStyle=null, $onClick=null)
Return a new Semantic Html Button.
htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL)
Returns a new Semantic Reveal.
Semantic Flag component.
Definition: HtmlFlag.php:15
Semantic Label groups component.
htmlLabelGroups($identifier, $labels=array(), $attributes=array())
htmlSegmentGroups($identifier, $items=array())
Adds a group of segments.
htmlContainer($identifier, $content="")
Returns a new Semantic container.
Semantic Image component.
Definition: HtmlImage.php:16
Semantic Icon component.
Definition: HtmlIcon.php:14
htmlIconGroups($identifier, $icons=array(), $size="")
Returns a new Semantic group of images.
htmlButtonGroups($identifier, $elements=array(), $asIcons=false)
Returns a group of Semantic buttons.
htmlStep($identifier, $steps=array())
Returns a new Semantic Step.
htmlIcon($identifier, $icon)
Returns a new Semantic icon.
Semantic UI divider component.
Definition: HtmlDivider.php:14
Semantic Header component.
Definition: HtmlHeader.php:19
htmlHeader($identifier, $niveau=1, $content=NULL, $type="page")
Returns a new Semantic header.
htmlRail($identifier, $content=null)
Returns a new Semantic Rail.
htmlList($identifier, $items=array())
Returns a new Semantic list.
Semantic UI container component.
htmlLabel($identifier, $content="", $icon=NULL, $tagName="div")
Returns a new Semantic label.
static add($state, $elements)
Definition: State.php:11
Semantic UI Buttongroups component.
htmlImage($identifier, $src="", $alt="", $size=NULL)
Returns a new Semantic image.