Pluf_Form_Widget_SelectMultipleInput_Checkbox Class Reference

Inheritance diagram for Pluf_Form_Widget_SelectMultipleInput_Checkbox:

Pluf_Form_Widget_SelectMultipleInput Pluf_Form_Widget

List of all members.

Public Member Functions

 render ($name, $value, $extra_attrs=array(), $choices=array())
 idForLabel ($id)


Detailed Description

Simple checkbox.

Member Function Documentation

Pluf_Form_Widget_SelectMultipleInput_Checkbox::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 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.


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

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