@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * |
648 | 648 | * @param string $name The name of the field for which to get the value. |
649 | 649 | * @param string $group The optional dot-separated form group path on which to get the value. |
650 | - * @param mixed $default The optional default value of the field value is empty. |
|
650 | + * @param string $default The optional default value of the field value is empty. |
|
651 | 651 | * |
652 | 652 | * @return mixed The value of the field or the default value if empty. |
653 | 653 | * |
@@ -1126,7 +1126,7 @@ discard block |
||
1126 | 1126 | * @param string $group The optional dot-separated form group path on which to filter the |
1127 | 1127 | * fields to be validated. |
1128 | 1128 | * |
1129 | - * @return mixed True on success. |
|
1129 | + * @return boolean True on success. |
|
1130 | 1130 | * |
1131 | 1131 | * @since 1.0 |
1132 | 1132 | */ |
@@ -1519,7 +1519,7 @@ discard block |
||
1519 | 1519 | * Method to get an array of <field /> elements from the form XML document which are |
1520 | 1520 | * in a control group by name. |
1521 | 1521 | * |
1522 | - * @param mixed $group The optional dot-separated form group path on which to find the fields. |
|
1522 | + * @param string|null $group The optional dot-separated form group path on which to find the fields. |
|
1523 | 1523 | * Null will return all fields. False will return fields not in a group. |
1524 | 1524 | * @param boolean $nested True to also include fields in nested groups that are inside of the |
1525 | 1525 | * group for which to find fields. |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * |
45 | 45 | * @param string $type Type of a field whose class should be loaded. |
46 | 46 | * |
47 | - * @return mixed Class name on success or false otherwise. |
|
47 | + * @return string|false Class name on success or false otherwise. |
|
48 | 48 | * |
49 | 49 | * @since 1.0 |
50 | 50 | */ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @param string $type Type of a rule whose class should be loaded. |
62 | 62 | * |
63 | - * @return mixed Class name on success or false otherwise. |
|
63 | + * @return string|false Class name on success or false otherwise. |
|
64 | 64 | * |
65 | 65 | * @since 1.0 |
66 | 66 | */ |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | * @param string $entity One of the form entities (field or rule). |
79 | 79 | * @param string $type Type of an entity. |
80 | 80 | * |
81 | - * @return boolean|string Class name on success or false otherwise. |
|
81 | + * @return string|false Class name on success or false otherwise. |
|
82 | 82 | * |
83 | 83 | * @since 1.0 |
84 | 84 | */ |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | /** |
115 | 115 | * Method to add a path to the list of form include paths. |
116 | 116 | * |
117 | - * @param mixed $new A path or array of paths to add. |
|
117 | + * @param string $new A path or array of paths to add. |
|
118 | 118 | * |
119 | 119 | * @return array The list of paths that have been added. |
120 | 120 | * |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * set to null, the index of the value array is used. |
108 | 108 | * @param string $optText The name of the object variable for the option text. |
109 | 109 | * @param mixed $selected The key that is selected (accepts an array or a string). |
110 | - * @param mixed $idtag Value of the field id or null by default |
|
110 | + * @param string $idtag Value of the field id or null by default |
|
111 | 111 | * @param boolean $translate True to translate |
112 | 112 | * |
113 | 113 | * @return string HTML for the select list. |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | * |
414 | 414 | * @param string $value The value of the option |
415 | 415 | * @param string $text The text for the option |
416 | - * @param mixed $optKey If a string, the returned object property name for |
|
416 | + * @param string $optKey If a string, the returned object property name for |
|
417 | 417 | * the value. If an array, options. Valid options are: |
418 | 418 | * attr: String|array. Additional attributes for this option. |
419 | 419 | * Defaults to none. |
@@ -435,7 +435,7 @@ discard block |
||
435 | 435 | * parameter is ignored if an options array is passed. |
436 | 436 | * @param boolean $disable Not used. |
437 | 437 | * |
438 | - * @return object |
|
438 | + * @return \stdClass |
|
439 | 439 | * |
440 | 440 | * @since 1.0 |
441 | 441 | */ |
@@ -696,10 +696,10 @@ discard block |
||
696 | 696 | /** |
697 | 697 | * Generates an HTML radio list. |
698 | 698 | * |
699 | - * @param array $data An array of objects |
|
699 | + * @param \stdClass[] $data An array of objects |
|
700 | 700 | * @param string $name The value of the HTML name attribute |
701 | 701 | * @param string $attribs Additional HTML attributes for the <select> tag |
702 | - * @param mixed $optKey The key that is selected |
|
702 | + * @param string $optKey The key that is selected |
|
703 | 703 | * @param string $optText The name of the object variable for the option value |
704 | 704 | * @param string $selected The name of the object variable for the option text |
705 | 705 | * @param boolean $idtag Value of the field id or null by default |