1 | <?php |
||
25 | trait SemanticHtmlElementsTrait { |
||
26 | |||
27 | public abstract function addHtmlComponent($htmlComponent); |
||
28 | |||
29 | /** |
||
30 | * Return a new Semantic Html Button |
||
31 | * @param string $identifier |
||
32 | * @param string $value |
||
33 | * @param string $cssStyle |
||
34 | * @param string $onClick |
||
35 | * @return HtmlButton |
||
36 | */ |
||
37 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
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 | * @param string $identifier |
||
63 | * @param string $content |
||
64 | * @return HtmlDivider |
||
65 | */ |
||
66 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
69 | |||
70 | /** |
||
71 | * @param string $identifier |
||
72 | * @param number $niveau |
||
73 | * @param mixed $content |
||
74 | * @param string $type |
||
75 | * @return HtmlHeader |
||
76 | */ |
||
77 | public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){ |
||
80 | |||
81 | /** |
||
82 | * @param string $identifier |
||
83 | * @param string $icon |
||
84 | * @return HtmlIcon |
||
85 | */ |
||
86 | public function htmlIcon($identifier,$icon){ |
||
89 | |||
90 | /** |
||
91 | * @param string $identifier |
||
92 | * @param string $size |
||
93 | * @param array $icons |
||
94 | * @return HtmlIconGroups |
||
95 | */ |
||
96 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
109 | |||
110 | /** |
||
111 | * |
||
112 | * @param string $identifier |
||
113 | * @param string $type |
||
114 | * @param string $value |
||
115 | * @param string $placeholder |
||
116 | * @return HtmlInput |
||
117 | */ |
||
118 | public function htmlInput($identifier,$type="text",$value="",$placeholder=""){ |
||
121 | |||
122 | /** |
||
123 | * @param string $identifier |
||
124 | * @param string $content |
||
125 | * @param string $tagName |
||
126 | * @return HtmlLabel |
||
127 | */ |
||
128 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
131 | |||
132 | /** |
||
133 | * |
||
134 | * @param string $identifier |
||
135 | * @param array $items |
||
136 | * @return HtmlList |
||
137 | */ |
||
138 | public function htmlList($identifier,$items=array()){ |
||
141 | |||
142 | /** |
||
143 | * Adds a new segment, used to create a grouping of related content |
||
144 | * @param string $identifier |
||
145 | * @param string $content |
||
146 | * @return HtmlSegment |
||
147 | */ |
||
148 | public function htmlSegment($identifier, $content=""){ |
||
151 | |||
152 | /** |
||
153 | * Adds a group of segments |
||
154 | * @param string $identifier |
||
155 | * @param array $items the segments |
||
156 | * @return HtmlSegmentGroups |
||
157 | */ |
||
158 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
161 | |||
162 | /** |
||
163 | * @param string $identifier |
||
164 | * @param string $label |
||
165 | * @param mixed $value |
||
166 | * @param CheckboxType $type |
||
167 | */ |
||
168 | public function htmlCheckbox($identifier, $label=NULL,$value=NULL,$type=NULL){ |
||
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 | } |