1 | <?php |
||
24 | trait SemanticHtmlElementsTrait { |
||
25 | |||
26 | public abstract function addHtmlComponent($htmlComponent); |
||
27 | |||
28 | /** |
||
29 | * Return a new Semantic Html Button |
||
30 | * @param string $identifier |
||
31 | * @param string $value |
||
32 | * @param string $cssStyle |
||
33 | * @param string $onClick |
||
34 | * @return HtmlButton |
||
35 | */ |
||
36 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @param string $identifier |
||
43 | * @param array $elements |
||
44 | * @param boolean $asIcons |
||
45 | * @return HtmlButtonGroups |
||
46 | */ |
||
47 | public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) { |
||
50 | |||
51 | /** |
||
52 | * Creates an html container |
||
53 | * @param string $identifier |
||
54 | * @param string $content |
||
55 | * @return HtmlContainer |
||
56 | */ |
||
57 | public function htmlContainer($identifier, $content="") { |
||
60 | |||
61 | /** |
||
62 | * |
||
63 | * @param string $identifier |
||
64 | * @param string $content |
||
65 | * @return HtmlDivider |
||
66 | */ |
||
67 | public function htmlDivider($identifier, $content="", $tagName="div") { |
||
70 | |||
71 | /** |
||
72 | * |
||
73 | * @param string $identifier |
||
74 | * @param number $niveau |
||
75 | * @param mixed $content |
||
76 | * @param string $type |
||
77 | * @return HtmlHeader |
||
78 | */ |
||
79 | public function htmlHeader($identifier, $niveau=1, $content=NULL, $type="page") { |
||
82 | |||
83 | /** |
||
84 | * |
||
85 | * @param string $identifier |
||
86 | * @param string $icon |
||
87 | * @return HtmlIcon |
||
88 | */ |
||
89 | public function htmlIcon($identifier, $icon) { |
||
92 | |||
93 | /** |
||
94 | * |
||
95 | * @param string $identifier |
||
96 | * @param string $size |
||
97 | * @param array $icons |
||
98 | * @return HtmlIconGroups |
||
99 | */ |
||
100 | public function htmlIconGroups($identifier, $size="", $icons=array()) { |
||
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="", $tagName="div") { |
||
136 | |||
137 | /** |
||
138 | * |
||
139 | * @param string $identifier |
||
140 | * @param array $items |
||
141 | * @return HtmlList |
||
142 | */ |
||
143 | public function htmlList($identifier, $items=array()) { |
||
146 | |||
147 | /** |
||
148 | * Adds a new segment, used to create a grouping of related content |
||
149 | * @param string $identifier |
||
150 | * @param string $content |
||
151 | * @return HtmlSegment |
||
152 | */ |
||
153 | public function htmlSegment($identifier, $content="") { |
||
156 | |||
157 | /** |
||
158 | * Adds a group of segments |
||
159 | * @param string $identifier |
||
160 | * @param array $items the segments |
||
161 | * @return HtmlSegmentGroups |
||
162 | */ |
||
163 | public function htmlSegmentGroups($identifier, $items=array()) { |
||
166 | |||
167 | /** |
||
168 | * |
||
169 | * @param string $identifier |
||
170 | * @param string|HtmlSemDoubleElement $visibleContent |
||
171 | * @param string|HtmlSemDoubleElement $hiddenContent |
||
172 | * @param RevealType|string $type |
||
173 | * @param Direction|string $attributeType |
||
174 | */ |
||
175 | public function htmlReveal($identifier, $visibleContent, $hiddenContent, $type=RevealType::FADE, $attributeType=NULL) { |
||
178 | |||
179 | public function htmlStep($identifier, $steps=array()) { |
||
182 | |||
183 | public function htmlFlag($identifier, $flag) { |
||
186 | } |