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
string
The element name
\OSS_Form_Element_Buttonlink
- The button link elementcreateLostUsernameElement(string $name) : \OSS_Form_Element_Buttonlink
string
The 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
string
The element name
string
The matching password element name
\Zend_Form_Element_Password
The password elementcreatePasswordElement(string $name) : \Zend_Form_Element_Password
string
The element name
\Zend_Form_Element_Password
The password elementcreatePasswordResetTokenElement(string $name) : \Zend_Form_Element_Text
string
The element name
\Zend_Form_Element_Text
The password reset token elementcreateRememberMeElement(string $name) : \Zend_Form_Element_Checkbox
string
The element name
\Zend_Form_Element_Checkbox
The remember me elementcreateReturnToLoginElement(string $name) : \OSS_Form_Element_Buttonlink
string
The 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.
string
The type of username expected
string
The element name
\Zend_Form_Element_Text
The username elementUSERNAME_TYPE_EMAIL
USERNAME_TYPE_NONEMAIL