Completed
Push — master ( 63bca8...69044f )
by Jean-Christophe
04:31
created
Ajax/common/traits/JsUtilsActionsTrait.php 1 patch
Doc Comments   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -10,6 +10,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.