Untility methods to add common Auth/Login elements to an authentication form
| author | Barry O'Donovan |
|---|---|
| author | The Skilled Team of PHP Developers at Open Solutions |
| category | OSS |
| package | OSS_Form |
| copyright | Copyright (c) 2007 - 2012, Open Source Solutions Limited, Dublin, Ireland |
| license | New BSD License |
createLostPasswordElement(string $name) : \OSS_Form_Element_Buttonlink
stringThe element name
\OSS_Form_Element_Buttonlink- The button link elementcreateLostUsernameElement(string $name) : \OSS_Form_Element_Buttonlink
stringThe element name
\OSS_Form_Element_Buttonlink- The button link elementcreatePasswordConfirmElement(string $name, string $pwname) : \Zend_Form_Element_Password
Also adds a validator to match it to the password field
stringThe element name
stringThe matching password element name
\Zend_Form_Element_PasswordThe password elementcreatePasswordElement(string $name) : \Zend_Form_Element_Password
stringThe element name
\Zend_Form_Element_PasswordThe password elementcreatePasswordResetTokenElement(string $name) : \Zend_Form_Element_Text
stringThe element name
\Zend_Form_Element_TextThe password reset token elementcreateRememberMeElement(string $name) : \Zend_Form_Element_Checkbox
stringThe element name
\Zend_Form_Element_CheckboxThe remember me elementcreateReturnToLoginElement(string $name) : \OSS_Form_Element_Buttonlink
stringThe element name
\OSS_Form_Element_Buttonlink- The button link elementcreateUsernameElement(string $type, string $name) : \Zend_Form_Element_Text
You must specify the type (USERNAME_TYPE_EMAIL or USERNAME_TYPE_NONEMAIL and
this will add additional validators, etc.
stringThe type of username expected
stringThe element name
\Zend_Form_Element_TextThe username elementUSERNAME_TYPE_EMAIL
USERNAME_TYPE_NONEMAIL