Pluf_Form_Field_Date Class Reference

Inheritance diagram for Pluf_Form_Field_Date:

Pluf_Form_Field

List of all members.

Public Member Functions

 clean ($value)

Public Attributes

 $widget = 'Pluf_Form_Widget_TextInput'
 $input_formats


Member Function Documentation

Pluf_Form_Field_Date::clean ( value  ) 

Validate some possible input for the field.

Parameters:
mixed Value to clean.
Returns:
mixed Cleaned data or throw a Pluf_Form_Invalid exception.

Reimplemented from Pluf_Form_Field.


Member Data Documentation

Pluf_Form_Field_Date::$widget = 'Pluf_Form_Widget_TextInput'

Widget. The way to "present" the field to the user.

Reimplemented from Pluf_Form_Field.

Pluf_Form_Field_Date::$input_formats

Initial value:

 array(
       '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', // 2006-10-25, 10/25/2006, 10/25/06
       '%b %d %Y', '%b %d, %Y',      // 'Oct 25 2006', 'Oct 25, 2006'
       '%d %b %Y', '%d %b, %Y',      // '25 Oct 2006', '25 Oct, 2006'
       '%B %d %Y', '%B %d, %Y',      // 'October 25 2006', 'October 25, 2006'
       '%d %B %Y', '%d %B, %Y',      // '25 October 2006', '25 October, 2006'
                                  )


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

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