Skip to content
Barry O'Donovan edited this page May 24, 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.

OSS_Form 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.

OSS_Form Traits

The available traits include:

  • OSS_Form_Trait - provides initialiseTraits() 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

Providing Help / Tips / Hints on Form Elements

We use a jQuery client side function to add Bootstrap popover hints and tips to elements. See this page for documentation.