-
Notifications
You must be signed in to change notification settings - Fork 13
OSS_Form
Barry O'Donovan edited this page May 24, 2013
·
7 revisions
The OSS_Form extends Zend_Form and its constructor:
- adds the
OSS_Filterpath for OSS library filters; - adds the
OSS_Validatepath 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 behave like a link. -
OSS_Form_Element_DatabaseDropdown- element which combines text field and drop down list functionality. -
OSS_Form_Element_DateForm- element with date picker functionality.
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_GenericElementsOSS_Form_Trait_InsertElementFnsOSS_Form_Trait_IsEditOSS_Form_Trait_Doctrine1MappingOSS_Form_Trait_Doctrine2Mapping
We use a jQuery client side function to add Bootstrap popover hints and tips to elements. See this page for documentation.