Captcha/ReCaptcha.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Captcha
- Subpackage
- Adapter
\Zend_Captcha_ReCaptcha
Package: Zend_Captcha\Adapter




Returns



ReCaptcha adapter
Allows to insert captchas driven by ReCaptcha service
- Parent(s)
- \Zend_Captcha_Base < \Zend_Validate_Abstract
- See
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id$
Constants
Properties

array $_messageTemplates = array(self::MISSING_VALUE => 'Missing captcha fields', self::ERR_CAPTCHA => 'Failed to validate captcha', self::BAD_CAPTCHA => 'Captcha value is wrong: %value%')Error messages
Default value
array(self::MISSING_VALUE => 'Missing captcha fields', self::ERR_CAPTCHA => 'Failed to validate captcha', self::BAD_CAPTCHA => 'Captcha value is wrong: %value%')Details- Type
- array
Methods

__construct(array | \Zend_Config $options = null) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $options | array | \Zend_Config |

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

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

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

setPrivkey(string $privkey) : \Zend_Captcha_ReCaptchaSet ReCaptcha Private key
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $privkey | string |
| Type | Description |
|---|---|
| \Zend_Captcha_ReCaptcha |

setPubkey(string $pubkey) : \Zend_Captcha_ReCaptchaSet ReCaptcha public key
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $pubkey | string |
| Type | Description |
|---|---|
| \Zend_Captcha_ReCaptcha |

setService(\Zend_Service_ReCaptcha $service) : \Zend_Captcha_ReCaptchaSet service object
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $service | \Zend_Service_ReCaptcha |
| Type | Description |
|---|---|
| \Zend_Captcha_ReCaptcha |