@@ -52,6 +52,10 @@ discard block |
||
52 | 52 | * @param string Text to display near the radio |
53 | 53 | * @param string Input field value |
54 | 54 | * @param mixed Either a typical HTML attribute string or an associative array |
55 | + * @param string $elementName |
|
56 | + * @param string $elementLabel |
|
57 | + * @param string $text |
|
58 | + * @param string $value |
|
55 | 59 | * @since 1.0 |
56 | 60 | * @access public |
57 | 61 | * @return void |
@@ -189,7 +193,7 @@ discard block |
||
189 | 193 | * @param object &$caller calling object |
190 | 194 | * @since 1.0 |
191 | 195 | * @access public |
192 | - * @return void |
|
196 | + * @return boolean |
|
193 | 197 | */ |
194 | 198 | public function onQuickFormEvent($event, $arg, &$caller) |
195 | 199 | { |
@@ -331,6 +331,7 @@ |
||
331 | 331 | * So we use the smarty eval plugin function to do this. |
332 | 332 | * |
333 | 333 | * @param string The template source |
334 | + * @param string $tplSource |
|
334 | 335 | * @access private |
335 | 336 | * @return void |
336 | 337 | */ |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | private $customElementTemplate; |
41 | 41 | |
42 | 42 | /** |
43 | - * @return mixed |
|
43 | + * @return string |
|
44 | 44 | */ |
45 | 45 | public function getCustomElementTemplate() |
46 | 46 | { |
@@ -457,6 +457,7 @@ discard block |
||
457 | 457 | * |
458 | 458 | * @param string The HTML surrounding an element |
459 | 459 | * @param string (optional) Name of the element to apply template for |
460 | + * @param string $html |
|
460 | 461 | * @access public |
461 | 462 | * @return void |
462 | 463 | */ |
@@ -504,6 +505,7 @@ discard block |
||
504 | 505 | * Sets header template |
505 | 506 | * |
506 | 507 | * @param string The HTML surrounding the header |
508 | + * @param string $html |
|
507 | 509 | * @access public |
508 | 510 | * @return void |
509 | 511 | */ |
@@ -516,6 +518,7 @@ discard block |
||
516 | 518 | * Sets form template |
517 | 519 | * |
518 | 520 | * @param string The HTML surrounding the form tags |
521 | + * @param string $html |
|
519 | 522 | * @access public |
520 | 523 | * @return void |
521 | 524 | */ |
@@ -527,6 +530,7 @@ discard block |
||
527 | 530 | * Sets the note indicating required fields template |
528 | 531 | * |
529 | 532 | * @param string The HTML surrounding the required note |
533 | + * @param string $html |
|
530 | 534 | * @access public |
531 | 535 | * @return void |
532 | 536 | */ |
@@ -480,6 +480,7 @@ |
||
480 | 480 | * the block contents on get() a bit differently |
481 | 481 | * |
482 | 482 | * @param string Block name |
483 | + * @param string $block |
|
483 | 484 | * @return string Block contents |
484 | 485 | */ |
485 | 486 | function _getTplBlock($block) |
@@ -137,6 +137,9 @@ |
||
137 | 137 | $this->_currentSection = $this->_sectionCount++; |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param boolean $required |
|
142 | + */ |
|
140 | 143 | function renderElement(&$element, $required, $error) |
141 | 144 | { |
142 | 145 | $elObj = $this->_elementToObject($element, $required, $error); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * |
72 | 72 | * @param mixed Options for the rule |
73 | 73 | * @access public |
74 | - * @return array first element is code to setup validation, second is the check itself |
|
74 | + * @return string[] first element is code to setup validation, second is the check itself |
|
75 | 75 | * @abstract |
76 | 76 | */ |
77 | 77 | function getValidationScript($options = null) |
@@ -73,6 +73,9 @@ |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | |
76 | + /** |
|
77 | + * @param integer[] $values |
|
78 | + */ |
|
76 | 79 | function validate($values, $operator = null) |
77 | 80 | { |
78 | 81 | $operator = $this->_findOperator($operator); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Function to check a date |
11 | 11 | * @see HTML_QuickForm_Rule |
12 | - * @param array $date An array with keys F (month), d (day) and Y (year) |
|
12 | + * @param string $date An array with keys F (month), d (day) and Y (year) |
|
13 | 13 | * @return boolean True if date is valid |
14 | 14 | */ |
15 | 15 | function validate($date, $options) |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * @param mixed $values Can be a scalar or an array of values |
175 | 175 | * to be validated |
176 | 176 | * @param mixed $options Options used by the rule |
177 | - * @param mixed $multiple Whether to validate an array of values altogether |
|
177 | + * @param boolean $multiple Whether to validate an array of values altogether |
|
178 | 178 | * @access public |
179 | 179 | * @return mixed true if no error found, int of valid values (when an array of values is given) or false if error |
180 | 180 | */ |
@@ -258,6 +258,7 @@ discard block |
||
258 | 258 | * the value |
259 | 259 | * @param integer value's index in the array (only used for |
260 | 260 | * multielement rules) |
261 | + * @param integer $index |
|
261 | 262 | * @return array first item is value javascript, second is reset |
262 | 263 | */ |
263 | 264 | function _getJsValue(&$element, $elementName, $reset = false, $index = null) |