1 | <?php |
||
36 | class Semantic extends BaseGui { |
||
37 | |||
38 | public function __construct($autoCompile=true) { |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @param string $attachTo |
||
45 | * @param string|array $params |
||
46 | * @return $this |
||
47 | */ |
||
48 | public function generic($attachTo=NULL, $params=NULL) { |
||
51 | /** |
||
52 | * |
||
53 | * @param string $attachTo |
||
54 | * @param string|array $params |
||
55 | * @return $this |
||
56 | */ |
||
57 | public function popup($attachTo=NULL, $params=NULL) { |
||
60 | |||
61 | public function dropdown($attachTo=NULL, $params=NULL) { |
||
64 | |||
65 | public function accordion($attachTo=NULL, $params=NULL) { |
||
68 | |||
69 | /** |
||
70 | * Return a new Semantic Html Button |
||
71 | * @param string $identifier |
||
72 | * @param string $value |
||
73 | * @param string $cssStyle |
||
74 | * @param string $onClick |
||
75 | * @return HtmlButton |
||
76 | */ |
||
77 | public function htmlButton($identifier, $value="", $cssStyle=null, $onClick=null) { |
||
80 | |||
81 | /** |
||
82 | * @param string $identifier |
||
83 | * @param string $icon |
||
84 | */ |
||
85 | public function htmlIcon($identifier,$icon){ |
||
88 | |||
89 | /** |
||
90 | * @param string $identifier |
||
91 | * @param string $size |
||
92 | * @param array $icons |
||
93 | */ |
||
94 | public function htmlIconGroups($identifier,$size="",$icons=array()){ |
||
107 | |||
108 | /** |
||
109 | * @param string $identifier |
||
110 | * @param array $elements |
||
111 | * @param boolean $asIcons |
||
112 | */ |
||
113 | public function htmlButtonGroups($identifier,$elements=array(),$asIcons=false){ |
||
116 | |||
117 | /** |
||
118 | * Creates an html container |
||
119 | * @param string $identifier |
||
120 | * @param string $content |
||
121 | */ |
||
122 | public function htmlContainer($identifier,$content=""){ |
||
125 | |||
126 | /** |
||
127 | * @param string $identifier |
||
128 | * @param string $content |
||
129 | */ |
||
130 | public function htmlDivider($identifier,$content="",$tagName="div"){ |
||
133 | |||
134 | /** |
||
135 | * @param string $identifier |
||
136 | * @param string $content |
||
137 | * @param string $tagName |
||
138 | */ |
||
139 | public function htmlLabel($identifier,$content="",$tagName="div"){ |
||
142 | |||
143 | /** |
||
144 | * @param string $identifier |
||
145 | * @param array $items |
||
146 | * @return Ajax\semantic\html\collections\HtmlMenu |
||
147 | */ |
||
148 | public function htmlMenu($identifier,$items=array()){ |
||
151 | |||
152 | /**Adds an icon menu |
||
153 | * @param string $identifier |
||
154 | * @param array $items icons |
||
155 | */ |
||
156 | public function htmlIconMenu($identifier,$items=array()){ |
||
159 | |||
160 | /**Adds an labeled icon menu |
||
161 | * @param string $identifier |
||
162 | * @param array $items icons |
||
163 | */ |
||
164 | public function htmlLabeledIconMenu($identifier,$items=array()){ |
||
167 | |||
168 | /** |
||
169 | * @param string $identifier |
||
170 | * @param string $value |
||
171 | * @param array $items |
||
172 | */ |
||
173 | public function htmlDropdown($identifier, $value="", $items=array()){ |
||
176 | |||
177 | /** |
||
178 | * Adds a new message |
||
179 | * @param string $identifier |
||
180 | * @param string $content |
||
181 | */ |
||
182 | public function htmlMessage($identifier, $content=""){ |
||
185 | |||
186 | /** |
||
187 | * Adds a new segment, used to create a grouping of related content |
||
188 | * @param string $identifier |
||
189 | * @param string $content |
||
190 | */ |
||
191 | public function htmlSegment($identifier, $content=""){ |
||
194 | |||
195 | /** |
||
196 | * Adds a group of segments |
||
197 | * @param string $identifier |
||
198 | * @param array $items the segments |
||
199 | */ |
||
200 | public function htmlSegmentGroups($identifier, $items=array()){ |
||
203 | |||
204 | /** |
||
205 | * @param string $identifier |
||
206 | * @param mixed $content |
||
207 | */ |
||
208 | public function htmlPopup(BaseHtml $container,$identifier,$content){ |
||
211 | |||
212 | /** |
||
213 | * @param string $identifier |
||
214 | * @param int $numRows |
||
215 | * @param int $numCols |
||
216 | * @param boolean $createCols |
||
217 | * @param boolean $implicitRows |
||
218 | */ |
||
219 | public function htmlGrid($identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){ |
||
222 | |||
223 | /** |
||
224 | * @param string $identifier |
||
225 | * @param number $niveau |
||
226 | * @param mixed $content |
||
227 | * @param string $type |
||
228 | */ |
||
229 | public function htmlHeader($identifier,$niveau=1,$content=NULL,$type="page"){ |
||
232 | |||
233 | public function htmlInput($identifier,$type="text",$value="",$placeholder=""){ |
||
236 | |||
237 | public function htmlList($identifier,$items=array()){ |
||
240 | |||
241 | /** |
||
242 | * Return a new Semantic Html Breadcrumb |
||
243 | * @param string $identifier |
||
244 | * @param array $elements |
||
|
|||
245 | * @param boolean $autoActive sets the last element's class to <b>active</b> if true. default : true |
||
246 | * @param function $hrefFunction the function who generates the href elements. default : function($e){return $e->getContent()} |
||
247 | * @return HtmlBreadcrumb |
||
248 | */ |
||
249 | public function htmlBreadcrumb( $identifier,$items=array(),$autoActive=true,$startIndex=0,$hrefFunction=NULL){ |
||
252 | |||
253 | /** |
||
254 | * Return a new Semantic Accordion |
||
255 | * @param string $identifier |
||
256 | * @return HtmlAccordion |
||
257 | */ |
||
258 | public function htmlAccordion($identifier) { |
||
261 | |||
262 | /** |
||
263 | * Return a new Semantic Menu Accordion |
||
264 | * @param string $identifier |
||
265 | * @return HtmlAccordion |
||
266 | */ |
||
267 | public function htmlAccordionMenu($identifier,$items=array()) { |
||
270 | |||
271 | /** |
||
272 | * Return a new Semantic Form |
||
273 | * @param string $identifier |
||
274 | * @param array $elements |
||
275 | */ |
||
276 | public function htmlForm($identifier,$elements=array()) { |
||
279 | } |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.