@@ -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) |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | * |
| 146 | 146 | * @since 1.0 |
| 147 | 147 | * @access public |
| 148 | - * @return array of selected values |
|
| 148 | + * @return string of selected values |
|
| 149 | 149 | */ |
| 150 | 150 | function getSelected() |
| 151 | 151 | { |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | /** |
| 209 | 209 | * Sets the value of the form element |
| 210 | 210 | * |
| 211 | - * @param mixed $values Array or comma delimited string of selected values |
|
| 211 | + * @param mixed $value Array or comma delimited string of selected values |
|
| 212 | 212 | * @since 1.0 |
| 213 | 213 | * @access public |
| 214 | 214 | * @return void |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | * |
| 227 | 227 | * @since 1.0 |
| 228 | 228 | * @access public |
| 229 | - * @return array of selected values |
|
| 229 | + * @return string of selected values |
|
| 230 | 230 | */ |
| 231 | 231 | function getValue() |
| 232 | 232 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * |
| 258 | 258 | * @since 1.0 |
| 259 | 259 | * @access public |
| 260 | - * @return int |
|
| 260 | + * @return string|null |
|
| 261 | 261 | */ |
| 262 | 262 | function getSize() |
| 263 | 263 | { |
@@ -357,12 +357,9 @@ discard block |
||
| 357 | 357 | /** |
| 358 | 358 | * Adds a new OPTION to the SELECT |
| 359 | 359 | * |
| 360 | - * @param string $text Display text for the OPTION |
|
| 361 | - * @param string $value Value for the OPTION |
|
| 362 | - * @param mixed $attributes Either a typical HTML attribute string |
|
| 363 | - * or an associative array |
|
| 364 | 360 | * @since 1.0 |
| 365 | 361 | * @access public |
| 362 | + * @param string $label |
|
| 366 | 363 | * @return void |
| 367 | 364 | */ |
| 368 | 365 | function addOptGroup($options, $label) |