Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding short descriptions in docblock

  • Loading branch information...
commit 2d908885c86de68f0e0c4cbfd88bce811d23aa54 1 parent a15481b
@ceeram ceeram authored
Showing with 11 additions and 4 deletions.
  1. +11 −4 lib/Cake/View/Helper/FormHelper.php
View
15 lib/Cake/View/Helper/FormHelper.php
@@ -944,7 +944,7 @@ public function inputs($fields = null, $blacklist = null, $options = array()) {
*/
public function input($fieldName, $options = array()) {
$this->setEntity($fieldName);
- $options = $this->_parseOptions($fieldName, $options);
+ $options = $this->_parseOptions($options);
$divOptions = $this->_divOptions($options);
unset($options['div']);
@@ -1011,6 +1011,7 @@ public function input($fieldName, $options = array()) {
}
/**
+ * Generates an input element
*
* @param type $args
* @return type
@@ -1050,12 +1051,12 @@ protected function _getInput($args) {
}
/**
+ * Generates input options array
*
- * @param type $fieldName
* @param type $options
- * @return array
+ * @return array Options
*/
- protected function _parseOptions($fieldName, $options) {
+ protected function _parseOptions($options) {
$options = array_merge(
array('before' => null, 'between' => null, 'after' => null, 'format' => null),
$this->_inputDefaults,
@@ -1081,6 +1082,7 @@ protected function _parseOptions($fieldName, $options) {
}
/**
+ * Generates list of options for multiple select
*
* @param type $options
* @return array
@@ -1104,6 +1106,7 @@ protected function _optionsOptions($options) {
}
/**
+ * Magically set option type and corresponding options
*
* @param type $options
* @return array
@@ -1167,6 +1170,7 @@ protected function _magicOptions($options) {
}
/**
+ * Generate format options
*
* @param type $options
* @return array
@@ -1185,6 +1189,7 @@ protected function _getFormat($options) {
}
/**
+ * Generate label for input
*
* @param type $fieldName
* @param type $options
@@ -1207,6 +1212,7 @@ protected function _getLabel($fieldName, $options) {
}
/**
+ * Calculates maxlength option
*
* @param type $options
* @return array
@@ -1229,6 +1235,7 @@ protected function _maxLength($options) {
}
/**
+ * Generate div options for input
*
* @param array $options
* @return array

0 comments on commit 2d90888

Please sign in to comment.
Something went wrong with that request. Please try again.