Skip to content

Commit

Permalink
adding short descriptions in docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Dec 10, 2012
1 parent a15481b commit 2d90888
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions lib/Cake/View/Helper/FormHelper.php
Expand Up @@ -944,7 +944,7 @@ public function inputs($fields = null, $blacklist = null, $options = array()) {
*/ */
public function input($fieldName, $options = array()) { public function input($fieldName, $options = array()) {
$this->setEntity($fieldName); $this->setEntity($fieldName);
$options = $this->_parseOptions($fieldName, $options); $options = $this->_parseOptions($options);


$divOptions = $this->_divOptions($options); $divOptions = $this->_divOptions($options);
unset($options['div']); unset($options['div']);
Expand Down Expand Up @@ -1011,6 +1011,7 @@ public function input($fieldName, $options = array()) {
} }


/** /**
* Generates an input element
* *
* @param type $args * @param type $args
* @return type * @return type
Expand Down Expand Up @@ -1050,12 +1051,12 @@ protected function _getInput($args) {
} }


/** /**
* Generates input options array
* *
* @param type $fieldName
* @param type $options * @param type $options
* @return array * @return array Options
*/ */
protected function _parseOptions($fieldName, $options) { protected function _parseOptions($options) {
$options = array_merge( $options = array_merge(
array('before' => null, 'between' => null, 'after' => null, 'format' => null), array('before' => null, 'between' => null, 'after' => null, 'format' => null),
$this->_inputDefaults, $this->_inputDefaults,
Expand All @@ -1081,6 +1082,7 @@ protected function _parseOptions($fieldName, $options) {
} }


/** /**
* Generates list of options for multiple select
* *
* @param type $options * @param type $options
* @return array * @return array
Expand All @@ -1104,6 +1106,7 @@ protected function _optionsOptions($options) {
} }


/** /**
* Magically set option type and corresponding options
* *
* @param type $options * @param type $options
* @return array * @return array
Expand Down Expand Up @@ -1167,6 +1170,7 @@ protected function _magicOptions($options) {
} }


/** /**
* Generate format options
* *
* @param type $options * @param type $options
* @return array * @return array
Expand All @@ -1185,6 +1189,7 @@ protected function _getFormat($options) {
} }


/** /**
* Generate label for input
* *
* @param type $fieldName * @param type $fieldName
* @param type $options * @param type $options
Expand All @@ -1207,6 +1212,7 @@ protected function _getLabel($fieldName, $options) {
} }


/** /**
* Calculates maxlength option
* *
* @param type $options * @param type $options
* @return array * @return array
Expand All @@ -1229,6 +1235,7 @@ protected function _maxLength($options) {
} }


/** /**
* Generate div options for input
* *
* @param array $options * @param array $options
* @return array * @return array
Expand Down

0 comments on commit 2d90888

Please sign in to comment.