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.
Zend_Service_ReCaptcha_Response
string $_errorCode = 'null'
Error code
The error code if the status is false. The different error codes can be found in the recaptcha API docs.
boolean $_status = 'null'
Status
true if the response is valid or false otherwise
__construct(
string $status
=
null, string $errorCode
=
null, Zend_Http_Response $httpResponse
=
null
)
:
Class constructor used to construct a response
getErrorCode(
)
:
string
Get the error code
getStatus(
)
:
boolean
Get the status
isValid(
)
:
boolean
Alias for getStatus()
setErrorCode(
string $errorCode
)
:
Zend_Service_ReCaptcha_Response
Set the error code
setFromHttpResponse(
Zend_Http_Response $response
)
:
Zend_Service_ReCaptcha_Response
Populate this instance based on a Zend_Http_Response object
setStatus(
string $status
)
:
Zend_Service_ReCaptcha_Response
Set the status