-
Notifications
You must be signed in to change notification settings - Fork 12
OSS_Form
Nerijus Barauskas edited this page May 23, 2013
·
7 revisions
The OSS_Form
extends Zend_Form
and its constructor:
- adds the
OSS_Filter
path for OSS library filters; - adds the
OSS_Validate
path for OSS library validators; - calls the parent constructor;
- calls
initialiseTraits()
to initialise any declared traits if they have initialisation methods.
See below for a list of OSS provided functional traits, new elements and utility classes for common elements.
The available form elements:
-
OSS_Form_Element_Buttonlink
- element which looks like a button but acts like a link. -
OSS_Form_Element_DatabaseDropdown
- element which combines text field and drop down functionality. -
OSS_Form_Element_DateForm
- element with date picker.
The available traits include:
-
OSS_Form_Trait
- providesinitialiseTraits()
and this trait is declared by default. -
OSS_Form_Trait_CancelLocation
- many forms have a cancel button and this adds a wrapper to make creating those buttons easier. OSS_Form_Trait_GenericElements
OSS_Form_Trait_InsertElementFns
OSS_Form_Trait_IsEdit
OSS_Form_Trait_Doctrine1Mapping
OSS_Form_Trait_Doctrine2Mapping