Adds default element loading to standard form
package | Gems |
---|---|
subpackage | Form |
copyright | Copyright (c) 2011 Erasmus MC |
license | New BSD License |
since | Class available since version 1.5.3 |
inherited_from | \Gems_Form |
__construct(mixed $options = null
) : void
Registers form view helper as decorator
mixed
activateBootstrap()
activateJQuery() : \MUtil_Form
\MUtil_Form
(continuation pattern)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)afterRegistry() : void
getAutoSubmit() : array
array
or nullgetLoadDefault($loadDefault = true
) : boolean
boolean
$loadDefaultgetSubmitButton() : \Zend_Form_Element_Submit
\Zend_Form_Element_Submit
getSubmitButtonLabel() : string
string
isAutoSubmit() : boolean
boolean
loadDefaultElements() : \Gems_Form_AutoLoadFormAbstract
\Gems_Form_AutoLoadFormAbstract
(continuation pattern)setAutoSubmit(mixed $submitUrl, mixed $targetId, $selective = false
)
mixed
Url as \MUtil_Html_UrlArrayAttribute, array or string
mixed
Id of html element whose content is replaced by the submit result: \MUtil_Html_ElementInterface or string
setLoadDefault(boolean $loadDefault = true
) : \Gems_User_Form_LoginForm
Enables loading of parameter through \Zend_Form::__construct()
boolean
\Gems_User_Form_LoginForm
(continuation pattern)_activateJQueryView(\Zend_View_Interface $view = null
)
_enableAutoSubmitElement(mixed $element)
Call only when $_autoSubmit is set
mixed
$_autosubmit : array
null
$_submitFieldName : string
'button'
$loadDefault : boolean
true
$translate : \Zend_Translate