Xataface Datepicker Module 0.2
jQuery Datepicker Widget for Xataface
Public Member Functions
Dataface_FormTool_datetimepicker Class Reference

A Dataface_FormTool wrapper for building datetimepicker widgets in Dataface_QuickForm forms. More...

Public Member Functions

buildWidget ($record, &$field, $form, $formFieldName, $new=false)

Detailed Description

A Dataface_FormTool wrapper for building datetimepicker widgets in Dataface_QuickForm forms.

All widget types require a wrapper of this kind to implement the glue between the field and the database records. This particular wrapper only implements the buildWidget() method but it could also implement pushValue() and pullValue() methods to define how data should be treated when passing between Dataface_RecordObjects and the HTML_QuickForm widget.

Note that the modules_datepicker class actually registers this class with Dataface_FormTool so that it knows of its existence.

Definition at line 34 of file datetimepickerwidget.php.


Member Function Documentation

& buildWidget ( record,
&$  field,
form,
formFieldName,
new = false 
)

Defines how a datetimepicker widget should be built.

Parameters:
Dataface_Record$recordThe Dataface_Record that is being edited.
array&$fieldThe field configuration data structure that the widget is being generated for.
HTML_QuickFormThe form to which the field is to be added.
string$formFieldNameThe name of the field in the form.
boolean$newWhether this widget is being built for a new record form.
Returns:
HTML_QuickForm_element The element that can be added to a form.
See also:
http://www.projectcodegen.com/JQueryDateTimePicker.aspx

Definition at line 49 of file datetimepickerwidget.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions