Pluf_Form_Widget_CheckboxInput Class Reference

Inheritance diagram for Pluf_Form_Widget_CheckboxInput:

Pluf_Form_Widget_Input Pluf_Form_Widget

List of all members.

Public Member Functions

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

Public Attributes

 $input_type = 'checkbox'


Detailed Description

Simple checkbox.

Member Function Documentation

Pluf_Form_Widget_CheckboxInput::render ( name,
value,
extra_attrs = array() 
)

Renders the HTML of the input.

Parameters:
string Name of the field.
mixed Value for the field, can be a non valid value.
array Extra attributes to add to the input form (array())
Returns:
string The HTML string of the input.

Reimplemented from Pluf_Form_Widget_Input.

Pluf_Form_Widget_CheckboxInput::valueFromFormData ( name,
data 
)

A non checked checkbox is simply not returned in the form array.

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_CheckboxInput::$input_type = 'checkbox'

Input type of the field.

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