Adding new options into doc blocks.

Removing todo as its implemented already.
This commit is contained in:
mark_story 2009-10-31 00:58:21 -04:00
parent ac302bb6c2
commit 9ed7a5cd55
2 changed files with 5 additions and 3 deletions

View file

@ -889,11 +889,11 @@ class FormHelper extends AppHelper {
* *
* - `value` - the value of the checkbox * - `value` - the value of the checkbox
* - `checked` - boolean indicate that this checkbox is checked. * - `checked` - boolean indicate that this checkbox is checked.
* - `hiddenField` - boolean to indicate if you want the results of radio() to include
* a hidden input with a value of ''. This is useful for creating radio sets that non-continuous
* *
* @param string $fieldName Name of a field, like this "Modelname.fieldname" * @param string $fieldName Name of a field, like this "Modelname.fieldname"
* @param array $options Array of HTML attributes. * @param array $options Array of HTML attributes.
* @todo Right now, automatically setting the 'checked' value is dependent on whether or not the
* checkbox is bound to a model. This should probably be re-evaluated in future versions.
* @return string An HTML text input element * @return string An HTML text input element
*/ */
function checkbox($fieldName, $options = array()) { function checkbox($fieldName, $options = array()) {
@ -934,6 +934,8 @@ class FormHelper extends AppHelper {
* - `legend` - control whether or not the widget set has a fieldset & legend * - `legend` - control whether or not the widget set has a fieldset & legend
* - `value` - indicate a value that is should be checked * - `value` - indicate a value that is should be checked
* - `label` - boolean to indicate whether or not labels for widgets show be displayed * - `label` - boolean to indicate whether or not labels for widgets show be displayed
* - `hiddenField` - boolean to indicate if you want the results of radio() to include
* a hidden input with a value of ''. This is useful for creating radio sets that non-continuous
* *
* @param string $fieldName Name of a field, like this "Modelname.fieldname" * @param string $fieldName Name of a field, like this "Modelname.fieldname"
* @param array $options Radio button options array. * @param array $options Radio button options array.