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'
ERR_CAPTCHA = 'errCaptcha'
BAD_CAPTCHA = 'badCaptcha'
$_CHALLENGE = 'recaptcha_challenge_field'
$_RESPONSE = 'recaptcha_response_field'
array $_messageTemplates = 'array'
Error messages
Zend_Service_Recaptcha $_service = ''
Recaptcha service object
array $_serviceOptions = 'array'
Options defined by the service
array $_serviceParams = 'array'
Parameters defined by the service
__construct(
array|Zend_Config $options
=
null
)
:
void
Constructor
generate(
)
:
string
Generate captcha
getPrivkey(
)
:
string
Retrieve ReCaptcha Private key
getPubkey(
)
:
string
Retrieve ReCaptcha Public key
getService(
)
:
Zend_Service_ReCaptcha
Retrieve ReCaptcha service object
isValid(
mixed $value, $context
=
null
)
:
boolean
Validate captcha
render(
Zend_View_Interface $view
=
null, mixed $element
=
null
)
:
string
Render captcha
setOption(
string $key, mixed $value
)
:
Zend_Captcha_ReCaptcha
Set option
If option is a service parameter, proxies to the service. The same goes for any service options (distinct from service params)
setPrivkey(
string $privkey
)
:
Zend_Captcha_ReCaptcha
Set ReCaptcha Private key
setPubkey(
string $pubkey
)
:
Zend_Captcha_ReCaptcha
Set ReCaptcha public key
setService(
Zend_Service_ReCaptcha $service
)
:
Zend_Captcha_ReCaptcha
Set service object