1 | <?php |
||
26 | trait SemanticHtmlElementsTrait { |
||
27 | |||
28 | public abstract function addHtmlComponent($htmlComponent); |
||
29 | |||
30 | public function addState($state, $elements) { |
||
33 | |||
34 | /** |
||
35 | * Return a new Semantic Html Button |
||
36 | * @param string $identifier |
||
37 | * @param string $value |
||
38 | * @param string $cssStyle |
||
39 | * @param string $onClick |
||
40 | * @return HtmlButton |
||
41 | */ |
||
42 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * @param string $identifier |
||
49 | * @param array $elements |
||
50 | * @param boolean $asIcons |
||
51 | * @return HtmlButtonGroups |
||
52 | */ |
||
53 | public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) { |
||
56 | |||
57 | /** |
||
58 | * Creates an html container |
||
59 | * @param string $identifier |
||
60 | * @param string $content |
||
61 | * @return HtmlContainer |
||
62 | */ |
||
63 | public function htmlContainer($identifier, $content="") { |
||
66 | |||
67 | /** |
||
68 | * |
||
69 | * @param string $identifier |
||
70 | * @param string $content |
||
71 | * @return HtmlDivider |
||
72 | */ |
||
73 | public function htmlDivider($identifier, $content="", $tagName="div") { |
||
76 | |||
77 | /** |
||
78 | * |
||
79 | * @param string $identifier |
||
80 | * @param number $niveau |
||
81 | * @param mixed $content |
||
82 | * @param string $type |
||
83 | * @return HtmlHeader |
||
84 | */ |
||
85 | public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") { |
||
88 | |||
89 | /** |
||
90 | * |
||
91 | * @param string $identifier |
||
92 | * @param string $icon |
||
93 | * @return HtmlIcon |
||
94 | */ |
||
95 | public function htmlIcon($identifier, $icon) { |
||
98 | |||
99 | public function htmlImage($identifier, $src="", $alt="", $size=NULL) { |
||
102 | |||
103 | /** |
||
104 | * |
||
105 | * @param string $identifier |
||
106 | * @param array $icons |
||
107 | * @param string $size |
||
108 | * @return HtmlIconGroups |
||
109 | */ |
||
110 | public function htmlIconGroups($identifier, $icons=array(), $size="") { |
||
113 | |||
114 | /** |
||
115 | * |
||
116 | * @param string $identifier |
||
117 | * @param string $type |
||
118 | * @param string $value |
||
119 | * @param string $placeholder |
||
120 | * @return HtmlInput |
||
121 | */ |
||
122 | public function htmlInput($identifier, $type="text", $value="", $placeholder="") { |
||
125 | |||
126 | /** |
||
127 | * |
||
128 | * @param string $identifier |
||
129 | * @param string $content |
||
130 | * @param string $tagName |
||
131 | * @return HtmlLabel |
||
132 | */ |
||
133 | public function htmlLabel($identifier, $content="", $icon=NULL,$tagName="div") { |
||
136 | |||
137 | public function htmlLabelGroups($identifier,$labels=array(),$attributes=array()){ |
||
140 | |||
141 | /** |
||
142 | * |
||
143 | * @param string $identifier |
||
144 | * @param array $items |
||
145 | * @return HtmlList |
||
146 | */ |
||
147 | public function htmlList($identifier, $items=array()) { |
||
150 | |||
151 | /** |
||
152 | * Adds a new segment, used to create a grouping of related content |
||
153 | * @param string $identifier |
||
154 | * @param string $content |
||
155 | * @return HtmlSegment |
||
156 | */ |
||
157 | public function htmlSegment($identifier, $content="") { |
||
160 | |||
161 | /** |
||
162 | * Adds a group of segments |
||
163 | * @param string $identifier |
||
164 | * @param array $items the segments |
||
165 | * @return HtmlSegmentGroups |
||
166 | */ |
||
167 | public function htmlSegmentGroups($identifier, $items=array()) { |
||
170 | |||
171 | /** |
||
172 | * |
||
173 | * @param string $identifier |
||
174 | * @param string|HtmlSemDoubleElement $visibleContent |
||
175 | * @param string|HtmlSemDoubleElement $hiddenContent |
||
176 | * @param RevealType|string $type |
||
177 | * @param Direction|string $attributeType |
||
178 | */ |
||
179 | public function htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL) { |
||
182 | |||
183 | public function htmlStep($identifier, $steps=array()) { |
||
186 | |||
187 | public function htmlFlag($identifier, $flag) { |
||
190 | } |