Xataface Duration Selector Module 0.1
Duration Selector Widget for Xataface Forms
|
A Dataface_FormTool wrapper for building durationselector widgets in Dataface_QuickForm forms. More...
Public Member Functions | |
& | buildWidget ($record, &$field, $form, $formFieldName, $new=false) |
A Dataface_FormTool wrapper for building durationselector 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 widget.php.
& buildWidget | ( | $ | record, |
&$ | field, | ||
$ | form, | ||
$ | formFieldName, | ||
$ | new = false |
||
) |
Defines how a datepicker widget should be built.
Dataface_Record | $record | The Dataface_Record that is being edited. |
array | &$field | The field configuration data structure that the widget is being generated for. |
HTML_QuickForm | The form to which the field is to be added. | |
string | $formFieldName | The name of the field in the form. |
boolean | $new | Whether this widget is being built for a new record form. |
Definition at line 47 of file widget.php.