Pluf_Form_Field_Datetime Class Reference

Inheritance diagram for Pluf_Form_Field_Datetime:

Pluf_Form_Field

List of all members.

Public Member Functions

 clean ($value)

Public Attributes

 $widget = 'Pluf_Form_Widget_DatetimeInput'
 $input_formats


Member Function Documentation

Pluf_Form_Field_Datetime::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_Datetime::$widget = 'Pluf_Form_Widget_DatetimeInput'

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

Reimplemented from Pluf_Form_Field.

Pluf_Form_Field_Datetime::$input_formats

Initial value:

 array(
             '%Y-%m-%d %H:%M:%S',     // '2006-10-25 14:30:59'
             '%Y-%m-%d %H:%M',        // '2006-10-25 14:30'
             '%Y-%m-%d',              // '2006-10-25'
             '%m/%d/%Y %H:%M:%S',     // '10/25/2006 14:30:59'
             '%m/%d/%Y %H:%M',        // '10/25/2006 14:30'
             '%m/%d/%Y',              // '10/25/2006'
             '%m/%d/%y %H:%M:%S',     // '10/25/06 14:30:59'
             '%m/%d/%y %H:%M',        // '10/25/06 14:30'
             '%m/%d/%y',              // '10/25/06'
                                  )


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

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