Creates a form using tab-layout where each tab is a subform
| package | Gems |
|---|---|
| subpackage | Form |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| inherited_from | \Gems_Form |
__construct(mixed $options = null)
Registers form view helper as decorator
| inherited_from | \Gems_Form::__construct() |
|---|
__construct(mixed $options = null) : void
Registers form view helper as decorator
mixed
activateBootstrap()
activateJQuery() : \MUtil_Form
\MUtil_Form(continuation pattern)addDisplayGroup(array $elements, string $name, array|\Zend_Config $options = null) : \Gems_TabForm | \Gems_Form_TabSubForm
array
string
array\Zend_Config
\Zend_Form_Exception |
if no valid elements provided |
|---|
\Gems_TabForm\Gems_Form_TabSubForm
addElement(string|\Zend_Form_Element $element, string $name= null, array|\Zend_Config $options= null) : \Gems_TabForm | \Gems_Form_TabSubForm
$element may be either a string element type, or an object of type \Zend_Form_Element. If a string element type is provided, $name must be provided, and $options may be optionally provided for configuring the element.
If a \Zend_Form_Element is provided, $name may be optionally provided, and any provided $options will be ignored.
| inherited_from | \Gems_Form::addElement() |
|---|
string\Zend_Form_Element
string
array\Zend_Config
\Zend_Form_Exception |
on invalid element |
|---|
\Gems_TabForm\Gems_Form_TabSubForm
addElement(string|\Zend_Form_Element $element, string $name= null, array|\Zend_Config $options= null) : \Zend_Form
$element may be either a string element type, or an object of type \Zend_Form_Element. If a string element type is provided, $name must be provided, and $options may be optionally provided for configuring the element.
If a \Zend_Form_Element is provided, $name may be optionally provided, and any provided $options will be ignored.
string\Zend_Form_Element
string
array\Zend_Config
\Zend_Form_Exception |
on invalid element |
|---|
\Zend_Form(continuation pattern)addTab(string $name, string $title) : \Gems_Form_TabSubForm
string
string
\Gems_Form_TabSubFormaddToOtherGroup(mixed $element) : \Gems_TabForm
mixed
\Gems_TabFormgetAutoSubmit() : array
arrayor nullgetDisplayGroup(string $name) : \Zend_Form_DisplayGroup | null
string
\Zend_Form_DisplayGroupnull
getElement(string $name) : \Zend_Form_Element | null
string
\Zend_Form_Elementnull
getTab(string $name) : \Gems_Form_TabSubForm
string
\Gems_Form_TabSubFormgetValues(boolean $suppressArrayNotation = false) : array
Fix for ZF error where subform values will be pushed into an array with key: formname for compatibility both are now in the result array
boolean
arrayisAutoSubmit() : boolean
booleanloadDefaultDecorators() : void
resetContext()
As addElement and addDisplayGroup provide a fluent way of working with subforms we need to provide a method to skip back to the main form again.
selectTab(integer $tabIdx)
integer
setAutoSubmit(mixed $submitUrl, mixed $targetId, $selective = false)
mixedUrl as \MUtil_Html_UrlArrayAttribute, array or string
mixedId of html element whose content is replaced by the submit result: \MUtil_Html_ElementInterface or string
setVerbose(boolean $bool)
boolean
setView(\Zend_View_Interface $view = null) : \Gems_TabForm
\Zend_View_Interface
\Gems_TabForm_activateJQueryView(\Zend_View_Interface $view = null)
_enableAutoSubmitElement(mixed $element)
Call only when $_autoSubmit is set
mixed
$_autosubmit : array
null$currentTab : \Gems_Form_TabSubForm
nullGROUP_OTHER = 'not_in_tab'