@@ -62,6 +62,9 @@ discard block |
||
62 | 62 | return $tr; |
63 | 63 | } |
64 | 64 | |
65 | + /** |
|
66 | + * @param integer $value |
|
67 | + */ |
|
65 | 68 | public function newRow($value) { |
66 | 69 | return $this->createItem($value); |
67 | 70 | } |
@@ -160,6 +163,9 @@ discard block |
||
160 | 163 | return $this; |
161 | 164 | } |
162 | 165 | |
166 | + /** |
|
167 | + * @param integer $colIndex |
|
168 | + */ |
|
163 | 169 | public function setColValues($colIndex, $values=array()) { |
164 | 170 | $count=$this->count(); |
165 | 171 | if (!\is_array($values)) { |
@@ -180,6 +186,9 @@ discard block |
||
180 | 186 | return $this; |
181 | 187 | } |
182 | 188 | |
189 | + /** |
|
190 | + * @param integer $rowIndex |
|
191 | + */ |
|
183 | 192 | public function setRowValues($rowIndex, $values=array()) { |
184 | 193 | $count=$this->count(); |
185 | 194 | if (!\is_array($values)) { |
@@ -189,6 +198,9 @@ discard block |
||
189 | 198 | return $this; |
190 | 199 | } |
191 | 200 | |
201 | + /** |
|
202 | + * @param string $function |
|
203 | + */ |
|
192 | 204 | private function colAlign($colIndex, $function) { |
193 | 205 | $count=$this->count(); |
194 | 206 | for($i=0; $i < $count; $i++) { |
@@ -266,7 +278,7 @@ discard block |
||
266 | 278 | } |
267 | 279 | |
268 | 280 | /** |
269 | - * @param mixed $callback |
|
281 | + * @param callable $callback |
|
270 | 282 | * @param string $format |
271 | 283 | * @return HtmlTableContent |
272 | 284 | */ |
@@ -279,7 +291,7 @@ discard block |
||
279 | 291 | } |
280 | 292 | |
281 | 293 | /** |
282 | - * @param mixed $callback |
|
294 | + * @param callable $callback |
|
283 | 295 | * @param string $format |
284 | 296 | * @return HtmlTableContent |
285 | 297 | */ |
@@ -292,7 +304,7 @@ discard block |
||
292 | 304 | } |
293 | 305 | |
294 | 306 | /** |
295 | - * @param mixed $callback |
|
307 | + * @param callable $callback |
|
296 | 308 | * @return HtmlTableContent |
297 | 309 | */ |
298 | 310 | public function applyCells($callback) { |
@@ -304,7 +316,7 @@ discard block |
||
304 | 316 | } |
305 | 317 | |
306 | 318 | /** |
307 | - * @param mixed $callback |
|
319 | + * @param callable $callback |
|
308 | 320 | * @return HtmlTableContent |
309 | 321 | */ |
310 | 322 | public function applyRows($callback) { |
@@ -30,9 +30,17 @@ discard block |
||
30 | 30 | trait FieldAsTrait{ |
31 | 31 | |
32 | 32 | abstract protected function _getFieldIdentifier($prefix,$name=""); |
33 | + |
|
34 | + /** |
|
35 | + * @param \Closure $callback |
|
36 | + */ |
|
33 | 37 | abstract public function setValueFunction($index,$callback); |
34 | 38 | abstract protected function _getFieldName($index); |
35 | 39 | abstract protected function _getFieldCaption($index); |
40 | + |
|
41 | + /** |
|
42 | + * @param string $event |
|
43 | + */ |
|
36 | 44 | abstract protected function _buttonAsSubmit(BaseHtml &$button,$event,$url,$responseElement=NULL,$parameters=NULL); |
37 | 45 | |
38 | 46 | /** |
@@ -243,6 +251,9 @@ discard block |
||
243 | 251 | } |
244 | 252 | } |
245 | 253 | |
254 | + /** |
|
255 | + * @param integer $index |
|
256 | + */ |
|
246 | 257 | public function fieldAs($index,$type,$attributes=NULL){ |
247 | 258 | $method="fieldAs".\ucfirst($type); |
248 | 259 | if(\method_exists($this, $method)){ |
@@ -249,6 +249,9 @@ discard block |
||
249 | 249 | return $this; |
250 | 250 | } |
251 | 251 | |
252 | + /** |
|
253 | + * @param integer $index |
|
254 | + */ |
|
252 | 255 | public static function setIndex($index) { |
253 | 256 | self::$index=$index; |
254 | 257 | } |
@@ -307,7 +310,7 @@ discard block |
||
307 | 310 | * The $callback function can take the following arguments : $field=>the compiled field, $instance : the active instance of the object, $index: the field position |
308 | 311 | * @param int $index postion of the compiled field |
309 | 312 | * @param callable $callback function called after the field compilation |
310 | - * @return \Ajax\semantic\widgets\datatable\InstanceViewer |
|
313 | + * @return InstanceViewer |
|
311 | 314 | */ |
312 | 315 | public function afterCompile($index,$callback){ |
313 | 316 | $this->afterCompile[$index]=$callback; |
@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | private $_colSizing=true; |
23 | 23 | private $_implicitRows=false; |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $identifier |
|
27 | + */ |
|
25 | 28 | public function __construct($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) { |
26 | 29 | parent::__construct($identifier, "div", "ui grid"); |
27 | 30 | $this->_implicitRows=$implicitRows; |
@@ -162,7 +165,7 @@ discard block |
||
162 | 165 | /** |
163 | 166 | * return the row at $index |
164 | 167 | * @param int $index |
165 | - * @return \Ajax\semantic\html\collections\HtmlGridRow |
|
168 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
166 | 169 | */ |
167 | 170 | public function getRow($index) { |
168 | 171 | return $this->getItem($index); |
@@ -72,6 +72,9 @@ discard block |
||
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | + /** |
|
76 | + * @param HtmlForm $form |
|
77 | + */ |
|
75 | 78 | protected function _generateFields($form,$values,$headers,$sepFirst,$wrappers){ |
76 | 79 | $wrapper=null; |
77 | 80 | if(isset($headers[$sepFirst+1])) |
@@ -136,12 +139,20 @@ discard block |
||
136 | 139 | $this->content[$this->_toolbarPosition]=$this->_toolbar; |
137 | 140 | } |
138 | 141 | |
142 | + /** |
|
143 | + * @param integer $index |
|
144 | + * @param string $title |
|
145 | + */ |
|
139 | 146 | public function addDividerBefore($index,$title){ |
140 | 147 | $index=$this->_getIndex($index); |
141 | 148 | $this->_instanceViewer->addHeaderDividerBefore($index, $title); |
142 | 149 | return $this; |
143 | 150 | } |
144 | 151 | |
152 | + /** |
|
153 | + * @param string $index |
|
154 | + * @param string $contentAfter |
|
155 | + */ |
|
145 | 156 | public function addWrapper($index,$contentBefore,$contentAfter=null){ |
146 | 157 | $index=$this->_getIndex($index); |
147 | 158 | $this->_instanceViewer->addWrapper($index, $contentBefore,$contentAfter); |
@@ -21,7 +21,6 @@ |
||
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @param string $identifier |
24 | - * @param array $items |
|
25 | 24 | * @return HtmlCardGroups |
26 | 25 | */ |
27 | 26 | public function htmlCardGroups($identifier, $cards=array()) { |
@@ -7,6 +7,11 @@ |
||
7 | 7 | * @property mixed $content |
8 | 8 | */ |
9 | 9 | trait ContentPartTrait{ |
10 | + |
|
11 | + /** |
|
12 | + * @param \Ajax\semantic\html\elements\HtmlButtonGroups $element |
|
13 | + * @param string $partKey |
|
14 | + */ |
|
10 | 15 | public function addElementInPart($element,$partKey,$before=false,$force=false){ |
11 | 16 | $part=$this->getPart($partKey,null,$force); |
12 | 17 | if($part instanceof HtmlSemDoubleElement){ |
@@ -12,6 +12,10 @@ |
||
12 | 12 | |
13 | 13 | class HtmlViewContent extends HtmlSemDoubleElement { |
14 | 14 | use ContentPartTrait; |
15 | + |
|
16 | + /** |
|
17 | + * @param string $identifier |
|
18 | + */ |
|
15 | 19 | public function __construct($identifier, $content=array()) { |
16 | 20 | parent::__construct($identifier, "div", "content",[]); |
17 | 21 | $this->setContent($content); |
@@ -10,6 +10,11 @@ discard block |
||
10 | 10 | */ |
11 | 11 | trait JsUtilsActionsTrait { |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $element |
|
15 | + * @param string $js |
|
16 | + * @param string $event |
|
17 | + */ |
|
13 | 18 | abstract public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true); |
14 | 19 | /** |
15 | 20 | * show or hide with effect |
@@ -34,7 +39,7 @@ discard block |
||
34 | 39 | } |
35 | 40 | /** |
36 | 41 | * Ensures the speed parameter is valid for jQuery |
37 | - * @param string|int $speed |
|
42 | + * @param string $speed |
|
38 | 43 | * @return string |
39 | 44 | */ |
40 | 45 | private function _validate_speed($speed) { |
@@ -363,7 +368,7 @@ discard block |
||
363 | 368 | * |
364 | 369 | * @param string $element |
365 | 370 | * @param array $options |
366 | - * @return void |
|
371 | + * @return string |
|
367 | 372 | */ |
368 | 373 | public function sortable($element, $options=array()) { |
369 | 374 | if (count($options)>0) { |
@@ -434,7 +439,7 @@ discard block |
||
434 | 439 | * @param string $jqueryCall the JQuery callback |
435 | 440 | * @param mixed $param array or string parameters |
436 | 441 | * @param string $jsCallback javascript code to execute after the jquery call |
437 | - * @return mixed |
|
442 | + * @return string |
|
438 | 443 | */ |
439 | 444 | public function doJQuery($element, $jqueryCall, $param="", $jsCallback="") { |
440 | 445 | return $this->_doJQuery($element, $jqueryCall, $param, $jsCallback, true); |
@@ -446,7 +451,7 @@ discard block |
||
446 | 451 | * @param string $jqueryCall the JQuery callback |
447 | 452 | * @param mixed $param array or string parameters |
448 | 453 | * @param string $jsCallback javascript code to execute after the jquery call |
449 | - * @return mixed |
|
454 | + * @return string |
|
450 | 455 | */ |
451 | 456 | public function doJQueryDeferred($element, $jqueryCall, $param="", $jsCallback="") { |
452 | 457 | return $this->_doJQuery($element, $jqueryCall, $param, $jsCallback, false); |
@@ -458,7 +463,7 @@ discard block |
||
458 | 463 | * @param string $element |
459 | 464 | * @param string $elementToModify |
460 | 465 | * @param string $jqueryCall |
461 | - * @param string|array $param |
|
466 | + * @param string $param |
|
462 | 467 | * @param boolean $preventDefault |
463 | 468 | * @param boolean $stopPropagation |
464 | 469 | * @param string $jsCallback javascript code to execute after the jquery call |