1 | <?php |
||
23 | trait SemanticHtmlElementsTrait { |
||
24 | |||
25 | public abstract function addHtmlComponent($htmlComponent); |
||
26 | |||
27 | /** |
||
28 | * Return a new Semantic Html Button |
||
29 | * @param string $identifier |
||
30 | * @param string $value |
||
31 | * @param string $cssStyle |
||
32 | * @param string $onClick |
||
33 | * @return HtmlButton |
||
34 | */ |
||
35 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
38 | |||
39 | /** |
||
40 | * @param string $identifier |
||
41 | * @param array $elements |
||
42 | * @param boolean $asIcons |
||
43 | * @return HtmlButtonGroups |
||
44 | */ |
||
45 | public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
||
48 | |||
49 | /** |
||
50 | * Creates an html container |
||
51 | * @param string $identifier |
||
52 | * @param string $content |
||
53 | * @return HtmlContainer |
||
54 | */ |
||
55 | public function htmlContainer($identifier,$content=""){ |
||
58 | |||
59 | /** |
||
60 | * @param string $identifier |
||
61 | * @param string $content |
||
62 | * @return HtmlDivider |
||
63 | */ |
||
64 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
67 | |||
68 | /** |
||
69 | * @param string $identifier |
||
70 | * @param number $niveau |
||
71 | * @param mixed $content |
||
72 | * @param string $type |
||
73 | * @return HtmlHeader |
||
74 | */ |
||
75 | public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){ |
||
78 | |||
79 | /** |
||
80 | * @param string $identifier |
||
81 | * @param string $icon |
||
82 | * @return HtmlIcon |
||
83 | */ |
||
84 | public function htmlIcon($identifier,$icon){ |
||
87 | |||
88 | /** |
||
89 | * @param string $identifier |
||
90 | * @param string $size |
||
91 | * @param array $icons |
||
92 | * @return HtmlIconGroups |
||
93 | */ |
||
94 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
107 | |||
108 | /** |
||
109 | * |
||
110 | * @param string $identifier |
||
111 | * @param string $type |
||
112 | * @param string $value |
||
113 | * @param string $placeholder |
||
114 | * @return HtmlInput |
||
115 | */ |
||
116 | public function htmlInput($identifier,$type="text",$value="",$placeholder=""){ |
||
119 | |||
120 | /** |
||
121 | * @param string $identifier |
||
122 | * @param string $content |
||
123 | * @param string $tagName |
||
124 | * @return HtmlLabel |
||
125 | */ |
||
126 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
129 | |||
130 | /** |
||
131 | * |
||
132 | * @param string $identifier |
||
133 | * @param array $items |
||
134 | * @return HtmlList |
||
135 | */ |
||
136 | public function htmlList($identifier,$items=array()){ |
||
139 | |||
140 | /** |
||
141 | * Adds a new segment, used to create a grouping of related content |
||
142 | * @param string $identifier |
||
143 | * @param string $content |
||
144 | * @return HtmlSegment |
||
145 | */ |
||
146 | public function htmlSegment($identifier, $content=""){ |
||
149 | |||
150 | /** |
||
151 | * Adds a group of segments |
||
152 | * @param string $identifier |
||
153 | * @param array $items the segments |
||
154 | * @return HtmlSegmentGroups |
||
155 | */ |
||
156 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
159 | |||
160 | /** |
||
161 | * @param string $identifier |
||
162 | * @param string|HtmlSemDoubleElement $visibleContent |
||
163 | * @param string|HtmlSemDoubleElement $hiddenContent |
||
164 | * @param RevealType|string $type |
||
165 | * @param Direction|string $attributeType |
||
166 | */ |
||
167 | public function htmlReveal($identifier, $visibleContent,$hiddenContent,$type=RevealType::FADE,$attributeType=NULL){ |
||
170 | |||
171 | public function htmlStep($identifier, $steps=array()){ |
||
174 | } |