Zend_Service_ReCaptcha_Response
category | Zend |
---|---|
package | Zend_Service |
subpackage | ReCaptcha |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
version | $Id$ |
__construct(string $status= null
, string $errorCode= null
, \Zend_Http_Response $httpResponse= null
)
string
string
\Zend_Http_Response
If this is set the content will override $status and $errorCode
getErrorCode() : string
string
getStatus() : boolean
boolean
isValid() : boolean
boolean
setErrorCode(string $errorCode) : \Zend_Service_ReCaptcha_Response
string
\Zend_Service_ReCaptcha_Response
setFromHttpResponse(\Zend_Http_Response $response) : \Zend_Service_ReCaptcha_Response
\Zend_Http_Response
\Zend_Service_ReCaptcha_Response
setStatus(string $status) : \Zend_Service_ReCaptcha_Response
string
\Zend_Service_ReCaptcha_Response
$_errorCode : string
null
The error code if the status is false. The different error codes can be found in the recaptcha API docs.
$_status : boolean
null
true if the response is valid or false otherwise