Pluf_Form_Widget_SelectMultipleInput Class Reference

Inheritance diagram for Pluf_Form_Widget_SelectMultipleInput:

Pluf_Form_Widget Pluf_Form_Widget_SelectMultipleInput_Checkbox

List of all members.

Public Member Functions

 __construct ($attrs=array())
 render ($name, $value, $extra_attrs=array(), $choices=array())
 valueFromFormData ($name, $data)

Public Attributes

 $choices = array()


Detailed Description

Simple checkbox.

Constructor & Destructor Documentation

Pluf_Form_Widget_SelectMultipleInput::__construct ( attrs = array()  ) 

Reimplemented from Pluf_Form_Widget.


Member Function Documentation

Pluf_Form_Widget_SelectMultipleInput::render ( name,
value,
extra_attrs = array(),
choices = array() 
)

Renders the HTML of the input.

Parameters:
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())
Returns:
string The HTML string of the input.

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.

Parameters:
string Name of the form.
array Submitted form data.
Returns:
mixed Value or null if not defined.

Reimplemented from Pluf_Form_Widget.


Member Data Documentation

Pluf_Form_Widget_SelectMultipleInput::$choices = array()


The documentation for this class was generated from the following file:

Generated on Wed Feb 3 15:44:52 2010 for Pluf by  doxygen