Service/ReCaptcha/Response.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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- ReCaptcha
\Zend_Service_ReCaptcha_Response
Zend_Service_ReCaptcha_Response
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Version
- $Id: Response.php 25152 2012-11-28 11:55:44Z cogo $
Properties

string $_errorCode = nullError code
The error code if the status is false. The different error codes can be found in the recaptcha API docs.
nullDetails- Type
- string
Methods

__construct(string $status = null, string $errorCode = null, \Zend_Http_Response $httpResponse = null) : voidClass constructor used to construct a response
| Name | Type | Description |
|---|---|---|
| $status | string | |
| $errorCode | string | |
| $httpResponse | \Zend_Http_Response | If this is set the content will override $status and $errorCode |

setErrorCode(string $errorCode) : \Zend_Service_ReCaptcha_ResponseSet the error code
| Name | Type | Description |
|---|---|---|
| $errorCode | string |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_Response |

setFromHttpResponse(\Zend_Http_Response $response) : \Zend_Service_ReCaptcha_ResponsePopulate this instance based on a Zend_Http_Response object
| Name | Type | Description |
|---|---|---|
| $response | \Zend_Http_Response |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_Response |

setStatus(string $status) : \Zend_Service_ReCaptcha_ResponseSet the status
| Name | Type | Description |
|---|---|---|
| $status | string |
| Type | Description |
|---|---|
| \Zend_Service_ReCaptcha_Response |