1 | <?php |
||
20 | trait SemanticHtmlElementsTrait { |
||
21 | |||
22 | public abstract function addHtmlComponent($htmlComponent); |
||
23 | |||
24 | /** |
||
25 | * Return a new Semantic Html Button |
||
26 | * @param string $identifier |
||
27 | * @param string $value |
||
28 | * @param string $cssStyle |
||
29 | * @param string $onClick |
||
30 | * @return HtmlButton |
||
31 | */ |
||
32 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
35 | |||
36 | /** |
||
37 | * @param string $identifier |
||
38 | * @param array $elements |
||
39 | * @param boolean $asIcons |
||
40 | * @return HtmlButtonGroups |
||
41 | */ |
||
42 | public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
||
45 | |||
46 | /** |
||
47 | * Creates an html container |
||
48 | * @param string $identifier |
||
49 | * @param string $content |
||
50 | * @return HtmlContainer |
||
51 | */ |
||
52 | public function htmlContainer($identifier,$content=""){ |
||
55 | |||
56 | /** |
||
57 | * @param string $identifier |
||
58 | * @param string $content |
||
59 | * @return HtmlDivider |
||
60 | */ |
||
61 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
64 | |||
65 | /** |
||
66 | * @param string $identifier |
||
67 | * @param number $niveau |
||
68 | * @param mixed $content |
||
69 | * @param string $type |
||
70 | * @return HtmlHeader |
||
71 | */ |
||
72 | public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){ |
||
75 | |||
76 | /** |
||
77 | * @param string $identifier |
||
78 | * @param string $icon |
||
79 | * @return HtmlIcon |
||
80 | */ |
||
81 | public function htmlIcon($identifier,$icon){ |
||
84 | |||
85 | /** |
||
86 | * @param string $identifier |
||
87 | * @param string $size |
||
88 | * @param array $icons |
||
89 | * @return HtmlIconGroups |
||
90 | */ |
||
91 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
104 | |||
105 | /** |
||
106 | * |
||
107 | * @param string $identifier |
||
108 | * @param string $type |
||
109 | * @param string $value |
||
110 | * @param string $placeholder |
||
111 | * @return HtmlInput |
||
112 | */ |
||
113 | public function htmlInput($identifier,$type="text",$value="",$placeholder=""){ |
||
116 | |||
117 | /** |
||
118 | * @param string $identifier |
||
119 | * @param string $content |
||
120 | * @param string $tagName |
||
121 | * @return HtmlLabel |
||
122 | */ |
||
123 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
126 | |||
127 | /** |
||
128 | * |
||
129 | * @param string $identifier |
||
130 | * @param array $items |
||
131 | * @return HtmlList |
||
132 | */ |
||
133 | public function htmlList($identifier,$items=array()){ |
||
136 | |||
137 | /** |
||
138 | * Adds a new segment, used to create a grouping of related content |
||
139 | * @param string $identifier |
||
140 | * @param string $content |
||
141 | * @return HtmlSegment |
||
142 | */ |
||
143 | public function htmlSegment($identifier, $content=""){ |
||
146 | |||
147 | /** |
||
148 | * Adds a group of segments |
||
149 | * @param string $identifier |
||
150 | * @param array $items the segments |
||
151 | * @return HtmlSegmentGroups |
||
152 | */ |
||
153 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
156 | |||
157 | public function htmlCheckbox($identifier, $label=NULL,$value=NULL,$type=NULL){ |
||
160 | } |