Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
ReCaptcha adapter
Allows to insert captchas driven by ReCaptcha service
MISSING_VALUE = 'missingValue'
Details ERR_CAPTCHA = 'errCaptcha'
Details BAD_CAPTCHA = 'badCaptcha'
Details $_CHALLENGE = 'recaptcha_challenge_field'
Details $_RESPONSE = 'recaptcha_response_field'
Detailsarray $_messageTemplates = 'array'Error messages
DetailsZend_Service_Recaptcha $_service = ''Recaptcha service object
Detailsarray $_serviceOptions = 'array'Options defined by the service
Detailsarray $_serviceParams = 'array'Parameters defined by the service
Details__construct(
array|Zend_Config $options
=
null
)
:
voidConstructor
Detailsgenerate(
)
:
stringGenerate captcha
DetailsgetPrivkey(
)
:
stringRetrieve ReCaptcha Private key
DetailsgetPubkey(
)
:
stringRetrieve ReCaptcha Public key
DetailsgetService(
)
:
Zend_Service_ReCaptchaRetrieve ReCaptcha service object
DetailsisValid(
mixed $value, $context
=
null
)
:
booleanValidate captcha
Detailsrender(
Zend_View_Interface $view
=
null, mixed $element
=
null
)
:
stringRender captcha
DetailssetOption(
string $key, mixed $value
)
:
Zend_Captcha_ReCaptchaSet option
If option is a service parameter, proxies to the service. The same goes for any service options (distinct from service params)
DetailssetPrivkey(
string $privkey
)
:
Zend_Captcha_ReCaptchaSet ReCaptcha Private key
DetailssetPubkey(
string $pubkey
)
:
Zend_Captcha_ReCaptchaSet ReCaptcha public key
DetailssetService(
Zend_Service_ReCaptcha $service
)
:
Zend_Captcha_ReCaptchaSet service object
Details