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

 Methods

Add the required CAPTCHA elements to a form

addCaptchaElements(\OSS_Form $form) : \OSS_Form
Static

Parameters

$form

\OSS_Form

The form to add the elements to

Returns

\OSS_FormThe same form for fluent interfaces

A utility function for creating a standard CAPTCHA id element

createIdElement(string $name) : \Zend_Form_Element_Hidden
Static

Parameters

$name

string

The element name

Returns

\Zend_Form_Element_HiddenThe CAPTCHA id element

A utility function for creating a standard CAPTCHA input element

createInputElement(string $name) : \Zend_Form_Element_Text
Static

Parameters

$name

string

The element name

Returns

\Zend_Form_Element_TextThe CAPTCHA input element

A utility function for creating a standard request new CAPTCHA image element

createRequestNewImageElement(string $name) : \Zend_Form_Element_Hidden
Static

Parameters

$name

string

The element name

Returns

\Zend_Form_Element_HiddenThe CAPTCHA id element