1 | <?php |
||
31 | class Semantic extends BaseGui { |
||
32 | |||
33 | public function __construct($autoCompile=true) { |
||
36 | |||
37 | /** |
||
38 | * |
||
39 | * @param string $attachTo |
||
40 | * @param string|array $params |
||
41 | * @return $this |
||
42 | */ |
||
43 | public function generic($attachTo=NULL, $params=NULL) { |
||
46 | /** |
||
47 | * |
||
48 | * @param string $attachTo |
||
49 | * @param string|array $params |
||
50 | * @return $this |
||
51 | */ |
||
52 | public function popup($attachTo=NULL, $params=NULL) { |
||
55 | |||
56 | public function dropdown($attachTo=NULL, $params=NULL) { |
||
59 | |||
60 | /** |
||
61 | * Return a new Semantic Html Button |
||
62 | * @param string $identifier |
||
63 | * @param string $value |
||
64 | * @param string $cssStyle |
||
65 | * @param string $onClick |
||
66 | * @return HtmlButton |
||
67 | */ |
||
68 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
71 | |||
72 | /** |
||
73 | * @param string $identifier |
||
74 | * @param string $icon |
||
75 | */ |
||
76 | public function htmlIcon($identifier,$icon){ |
||
79 | |||
80 | /** |
||
81 | * @param string $identifier |
||
82 | * @param string $size |
||
83 | * @param array $icons |
||
84 | */ |
||
85 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
98 | |||
99 | /** |
||
100 | * @param string $identifier |
||
101 | * @param array $elements |
||
102 | * @param boolean $asIcons |
||
103 | */ |
||
104 | public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
||
107 | |||
108 | /** |
||
109 | * Creates an html container |
||
110 | * @param string $identifier |
||
111 | * @param string $content |
||
112 | */ |
||
113 | public function htmlContainer($identifier,$content=""){ |
||
116 | |||
117 | /** |
||
118 | * @param string $identifier |
||
119 | * @param string $content |
||
120 | */ |
||
121 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
124 | |||
125 | /** |
||
126 | * @param string $identifier |
||
127 | * @param string $content |
||
128 | * @param string $tagName |
||
129 | */ |
||
130 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
133 | |||
134 | /** |
||
135 | * @param string $identifier |
||
136 | * @param array $items |
||
137 | */ |
||
138 | public function htmlMenu($identifier,$items=array()){ |
||
141 | |||
142 | /**Adds an icon menu |
||
143 | * @param string $identifier |
||
144 | * @param array $items icons |
||
145 | */ |
||
146 | public function htmlIconMenu($identifier,$items=array()){ |
||
149 | |||
150 | /**Adds an labeled icon menu |
||
151 | * @param string $identifier |
||
152 | * @param array $items icons |
||
153 | */ |
||
154 | public function htmlLabeledIconMenu($identifier,$items=array()){ |
||
157 | |||
158 | /** |
||
159 | * @param string $identifier |
||
160 | * @param string $value |
||
161 | * @param array $items |
||
162 | */ |
||
163 | public function htmlDropdown($identifier, $value="", $items=array()){ |
||
166 | |||
167 | /** |
||
168 | * Adds a new message |
||
169 | * @param string $identifier |
||
170 | * @param string $content |
||
171 | */ |
||
172 | public function htmlMessage($identifier, $content=""){ |
||
175 | |||
176 | /** |
||
177 | * Adds a new segment, used to create a grouping of related content |
||
178 | * @param string $identifier |
||
179 | * @param string $content |
||
180 | */ |
||
181 | public function htmlSegment($identifier, $content=""){ |
||
184 | |||
185 | /** |
||
186 | * Adds a group of segments |
||
187 | * @param string $identifier |
||
188 | * @param array $items the segments |
||
189 | */ |
||
190 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
193 | |||
194 | /** |
||
195 | * @param string $identifier |
||
196 | * @param mixed $content |
||
197 | */ |
||
198 | public function htmlPopup(BaseHtml $container,$identifier,$content){ |
||
201 | |||
202 | /** |
||
203 | * @param string $identifier |
||
204 | * @param int $numRows |
||
205 | * @param int $numCols |
||
206 | * @param boolean $createCols |
||
207 | * @param boolean $implicitRows |
||
208 | */ |
||
209 | public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){ |
||
212 | |||
213 | /** |
||
214 | * @param string $identifier |
||
215 | * @param number $niveau |
||
216 | * @param mixed $content |
||
217 | * @param string $type |
||
218 | */ |
||
219 | public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){ |
||
222 | |||
223 | public function htmlInput($identifier,$type="text",$value="",$placeholder=""){ |
||
226 | |||
227 | public function htmlList($identifier,$items=array()){ |
||
230 | } |