
Public Member Functions | |
| render ($name, $value, $extra_attrs=array(), $choices=array()) | |
| idForLabel ($id) | |
| Pluf_Form_Widget_SelectMultipleInput_Checkbox::render | ( | $ | name, | |
| $ | value, | |||
| $ | extra_attrs = array(), |
|||
| $ | choices = array() | |||
| ) |
Renders the HTML of the input.
| string | Name of the field. | |
| array | Value for the field, can be a non valid value. | |
| array | Extra attributes to add to the input form (array()) | |
| array | Extra choices (array()) |
Reimplemented from Pluf_Form_Widget_SelectMultipleInput.
| Pluf_Form_Widget_SelectMultipleInput_Checkbox::idForLabel | ( | $ | id | ) |
Returns the HTML ID attribute of this Widget for use by a <label>, given the ID of the field. Returns None if no ID is available.
This hook is necessary because some widgets have multiple HTML elements and, thus, multiple IDs. In that case, this method should return an ID value that corresponds to the first ID in the widget's tags.
Reimplemented from Pluf_Form_Widget.