Skip to content

Commit

Permalink
Completing doc blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Feb 23, 2014
1 parent 82ec578 commit a332584
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/View/Helper/FormHelper.php
Expand Up @@ -902,6 +902,7 @@ public function input($fieldName, $options = array()) {
/** /**
* Generates input options array * Generates input options array
* *
* @param string $fieldName the name of the field to parse options for
* @param array $options * @param array $options
* @return array Options * @return array Options
*/ */
Expand All @@ -916,6 +917,15 @@ protected function _parseOptions($fieldName, $options) {
return $options; return $options;
} }


/**
* Returns the input type that was guessed for the provided fieldName,
* based on the internal type it is associated too, its name and the
* variales that can be foudn in the view template
*
* @param string $fieldName the name of the field to guess a type for
* @param array $options the options passed to the input method
* @return string
*/
protected function _inputType($fieldName, $options) { protected function _inputType($fieldName, $options) {
$context = $this->_getContext(); $context = $this->_getContext();
$primaryKey = (array)$context->primaryKey(); $primaryKey = (array)$context->primaryKey();
Expand Down Expand Up @@ -952,8 +962,10 @@ protected function _inputType($fieldName, $options) {
} }


/** /**
* Generates list of options for multiple select * Selects the variable containing the options for a select field if present,
* and sets the value to the 'options' key in the options array.
* *
* @param string $fieldName the name of the field to find options for
* @param array $options * @param array $options
* @return array * @return array
*/ */
Expand All @@ -979,7 +991,10 @@ protected function _optionsOptions($fieldName, $options) {
/** /**
* Magically set option type and corresponding options * Magically set option type and corresponding options
* *
* @param string $fieldName the name of the field to generate options for
* @param array $options * @param array $options
* @param boolean $allowOverride whether or not it is allowed for this method to
* overwrite the 'type' key in options
* @return array * @return array
*/ */
protected function _magicOptions($fieldName, $options, $allowOverride) { protected function _magicOptions($fieldName, $options, $allowOverride) {
Expand Down

0 comments on commit a332584

Please sign in to comment.