Adds default element loading to standard form
| package | Gems |
|---|---|
| subpackage | User |
| copyright | Copyright (c) 2012 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.5.3 |
| inherited_from | \Gems_User_Form_OrganizationFormAbstract |
__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
arrayor nullgetCurrentOrganizationId() : integer
integerReturns the current organization id, if anygetLoadDefault($loadDefault = true) : boolean
boolean$loadDefaultgetLoginLink() : \MUtil_Html_AElement
\MUtil_Html_AElementgetLoginLinkElement() : \MUtil_Form_Element_Html
\MUtil_Form_Element_HtmlgetLoginOrganizations() : array
arrayorgId => NamegetOrganizationElement() : \Zend_Form_Element_Xhtml
\Zend_Form_Element_XhtmlgetOrganizationIsVisible() : boolean
booleangetRequest() : \Zend_Controller_Request_Abstract
\Zend_Controller_Request_AbstractgetSubmitButton() : \Zend_Form_Element_Submit
\Zend_Form_Element_SubmitgetSubmitButtonLabel() : string
stringgetSubmitButtonLabel() : string
stringgetUser() : \Gems_User_User
| inherited_from | \Gems_User_Validate_GetUserInterface::getUser() |
|---|
\Gems_User_UsergetUserNameElement() : \Zend_Form_Element_Text
| inherited_from | \Gems_User_Form_OrganizationFormAbstract::getUserNameElement() |
|---|
\Zend_Form_Element_TextgetUserNameElement() : \Zend_Form_Element_Text
\Zend_Form_Element_TextisAutoSubmit() : boolean
booleanisValid(array $data, boolean $disableTranslateValidators = null) : boolean
As it is better for translation utilities to set the labels etc. translated, the MUtil default is to disable translation.
However, this also disables the translation of validation messages, which we cannot set translated. The MUtil form is extended so it can make this switch.
array
booleanExtra switch
booleanloadDefaultElements() : \Gems_User_Form_LoginForm
\Gems_User_Form_LoginForm(continuation pattern)loadDefaultElements() : \Gems_Form_AutoLoadFormAbstract
\Gems_Form_AutoLoadFormAbstract(continuation pattern)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
setLoadDefault(boolean $loadDefault = true) : \Gems_User_Form_LoginForm
Enables loading of parameter through \Zend_Form::__construct()
boolean
\Gems_User_Form_LoginForm(continuation pattern)setOrganizationMaxLines(integer $organizationMaxLines) : \Gems_User_Form_LoginForm
Enables loading of parameter through \Zend_Form::__construct()
integer
\Gems_User_Form_LoginForm(continuation pattern)wasSubmitted() : boolean
boolean_activateJQueryView(\Zend_View_Interface $view = null)
_enableAutoSubmitElement(mixed $element)
Call only when $_autoSubmit is set
mixed
$organizationFieldName : string
'organization'$usernameFieldName : string
'userlogin'$_autosubmit : array
null$_loginLinkFieldName : string
'loginlink'$_organizationFromUrl : boolean
false$_submitFieldName : string
'button'$_user : \Gems_User_User
$loadDefault : boolean
true$loader : \Gems_Loader
$organizationMaxLines : integer
6$request : \Zend_Controller_Request_Abstract
$translate : \Zend_Translate
$util : \Zend_Util