
Public Member Functions | |
| __construct ($attrs=array()) | |
| render ($name, $value, $extra_attrs=array(), $choices=array()) | |
| valueFromFormData ($name, $data) | |
Public Attributes | |
| $choices = array() | |
| Pluf_Form_Widget_SelectMultipleInput::__construct | ( | $ | attrs = array() |
) |
Reimplemented from Pluf_Form_Widget.
| Pluf_Form_Widget_SelectMultipleInput::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 in Pluf_Form_Widget_SelectMultipleInput_Checkbox.
| Pluf_Form_Widget_SelectMultipleInput::valueFromFormData | ( | $ | name, | |
| $ | data | |||
| ) |
A widget can split itself in multiple input form. For example you can have a datetime value in your model and you use 2 inputs one for the date and one for the time to input the value. So the widget must know how to get back the values from the submitted form.
| string | Name of the form. | |
| array | Submitted form data. |
Reimplemented from Pluf_Form_Widget.
| Pluf_Form_Widget_SelectMultipleInput::$choices = array() |