@@ -599,9 +599,9 @@ public function unlockField($name = null) {
599
599
*
600
600
* @param boolean $lock Whether this field should be part of the validation
601
601
* or excluded as part of the unlockedFields.
602
- * @param string|array $field Reference to field to be secured. Should be dot separated to indicate nesting.
602
+ * @param string $field Reference to field to be secured. Should be dot separated to indicate nesting.
603
603
* @param mixed $value Field value, if value should not be tampered with.
604
- * @return void
604
+ * @return mixed|null Not used yet
605
605
*/
606
606
protected function _secure ($ lock , $ field = null , $ value = null ) {
607
607
if (!$ field ) {
@@ -1029,8 +1029,8 @@ public function input($fieldName, $options = array()) {
1029
1029
/**
1030
1030
* Generates an input element
1031
1031
*
1032
- * @param type $args
1033
- * @return type
1032
+ * @param array $args The options for the input element
1033
+ * @return string The generated input element
1034
1034
*/
1035
1035
protected function _getInput ($ args ) {
1036
1036
extract ($ args );
@@ -1069,7 +1069,7 @@ protected function _getInput($args) {
1069
1069
/**
1070
1070
* Generates input options array
1071
1071
*
1072
- * @param type $options
1072
+ * @param array $options
1073
1073
* @return array Options
1074
1074
*/
1075
1075
protected function _parseOptions ($ options ) {
@@ -1100,7 +1100,7 @@ protected function _parseOptions($options) {
1100
1100
/**
1101
1101
* Generates list of options for multiple select
1102
1102
*
1103
- * @param type $options
1103
+ * @param array $options
1104
1104
* @return array
1105
1105
*/
1106
1106
protected function _optionsOptions ($ options ) {
@@ -1110,7 +1110,7 @@ protected function _optionsOptions($options) {
1110
1110
$ varName = Inflector::variable (
1111
1111
Inflector::pluralize (preg_replace ('/_id$/ ' , '' , $ this ->field ()))
1112
1112
);
1113
- $ varOptions = $ this ->_View ->getVar ($ varName );
1113
+ $ varOptions = $ this ->_View ->get ($ varName );
1114
1114
if (!is_array ($ varOptions )) {
1115
1115
return $ options ;
1116
1116
}
@@ -1124,7 +1124,7 @@ protected function _optionsOptions($options) {
1124
1124
/**
1125
1125
* Magically set option type and corresponding options
1126
1126
*
1127
- * @param type $options
1127
+ * @param array $options
1128
1128
* @return array
1129
1129
*/
1130
1130
protected function _magicOptions ($ options ) {
@@ -1192,7 +1192,7 @@ protected function _magicOptions($options) {
1192
1192
/**
1193
1193
* Generate format options
1194
1194
*
1195
- * @param type $options
1195
+ * @param array $options
1196
1196
* @return array
1197
1197
*/
1198
1198
protected function _getFormat ($ options ) {
@@ -1211,8 +1211,8 @@ protected function _getFormat($options) {
1211
1211
/**
1212
1212
* Generate label for input
1213
1213
*
1214
- * @param type $fieldName
1215
- * @param type $options
1214
+ * @param string $fieldName
1215
+ * @param array $options
1216
1216
* @return boolean|string false or Generated label element
1217
1217
*/
1218
1218
protected function _getLabel ($ fieldName , $ options ) {
@@ -1234,7 +1234,7 @@ protected function _getLabel($fieldName, $options) {
1234
1234
/**
1235
1235
* Calculates maxlength option
1236
1236
*
1237
- * @param type $options
1237
+ * @param array $options
1238
1238
* @return array
1239
1239
*/
1240
1240
protected function _maxLength ($ options ) {
@@ -1310,9 +1310,8 @@ protected function _extractOption($name, $options, $default = null) {
1310
1310
*
1311
1311
* @param string $fieldName
1312
1312
* @param string $label
1313
- * @param array $options Options for the label element.
1313
+ * @param array $options Options for the label element. 'NONE' option is deprecated and will be removed in 3.0
1314
1314
* @return string Generated label element
1315
- * @deprecated 'NONE' option is deprecated and will be removed in 3.0
1316
1315
*/
1317
1316
protected function _inputLabel ($ fieldName , $ label , $ options ) {
1318
1317
$ labelAttributes = $ this ->domId (array (), 'for ' );
@@ -1739,7 +1738,7 @@ public function postButton($title, $url, $options = array()) {
1739
1738
* @param string $title The content to be wrapped by <a> tags.
1740
1739
* @param string|array $url Cake-relative URL or array of URL parameters, or external URL (starts with http://)
1741
1740
* @param array $options Array of HTML attributes.
1742
- * @param string $confirmMessage JavaScript confirmation message.
1741
+ * @param bool| string $confirmMessage JavaScript confirmation message.
1743
1742
* @return string An `<a />` element.
1744
1743
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::postLink
1745
1744
*/
@@ -2234,7 +2233,7 @@ public function hour($fieldName, $format24Hours = false, $attributes = array())
2234
2233
* - `value` The selected value of the input.
2235
2234
*
2236
2235
* @param string $fieldName Prefix name for the SELECT element
2237
- * @param string $attributes Array of Attributes
2236
+ * @param array $attributes Array of Attributes
2238
2237
* @return string Completed minute select input.
2239
2238
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::minute
2240
2239
*/
@@ -2294,7 +2293,7 @@ protected function _dateTimeSelected($select, $fieldName, $attributes) {
2294
2293
* - `value` The selected value of the input.
2295
2294
*
2296
2295
* @param string $fieldName Prefix name for the SELECT element
2297
- * @param string $attributes Array of Attributes
2296
+ * @param array| string $attributes Array of Attributes
2298
2297
* @return string Completed meridian select input
2299
2298
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::meridian
2300
2299
*/
@@ -2344,7 +2343,7 @@ public function meridian($fieldName, $attributes = array()) {
2344
2343
* @param string $fieldName Prefix name for the SELECT element
2345
2344
* @param string $dateFormat DMY, MDY, YMD, or null to not generate date inputs.
2346
2345
* @param string $timeFormat 12, 24, or null to not generate time inputs.
2347
- * @param string $attributes array of Attributes
2346
+ * @param array| string $attributes array of Attributes
2348
2347
* @return string Generated set of select boxes for the date and time formats chosen.
2349
2348
* @link http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::dateTime
2350
2349
*/
0 commit comments