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

array
$_messageTemplates= 'array(
self::MISSING_VALUE => 'Missing captcha fields''
Error messages
array(
self::MISSING_VALUE => 'Missing captcha fields'
Details
array
$_serviceOptions= 'array()'
Options defined by the service
array()
Details
__construct(
array|\Zend_Config $options
=
null
)
:
void
Constructor
Name | Type | Description |
---|---|---|
$options | array|\Zend_Config |

generate(
)
:
string
Generate captcha
Type | Description |
---|---|
string |

getService(
)
:
\Zend_Service_ReCaptcha
Retrieve ReCaptcha service object
Type | Description |
---|---|
\Zend_Service_ReCaptcha |

isValid(
mixed $value, $context
=
null
)
:
boolean
Validate captcha
Name | Type | Description |
---|---|---|
$value | mixed | |
$context |
Type | Description |
---|---|
boolean |

render(
\Zend_View_Interface $view
=
null, mixed $element
=
null
)
:
string
Render captcha
Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface | |
$element | mixed |
Type | Description |
---|---|
string |

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)
Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Captcha_ReCaptcha |

setService(
\Zend_Service_ReCaptcha $service
)
:
\Zend_Captcha_ReCaptcha
Set service object
Name | Type | Description |
---|---|---|
$service | \Zend_Service_ReCaptcha |
Type | Description |
---|---|
\Zend_Captcha_ReCaptcha |