Zend_Service_ReCaptcha
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$ |
inherited_from | \Zend_Service_Abstract |
__construct(string $publicKey= null
, string $privateKey= null
, array|\Zend_Config $params= null
, array $options= null
, string $ip= null
)
string
string
array
array
\Zend_Config
array
string
__toString() : string
When the instance is used as a string it will display the recaptcha. Since we can't throw exceptions within this method we will trigger a user warning instead.
string
getHtml(null|string $name = null
) : string
This method uses the public key to fetch a recaptcha form.
null
string
Base name for recaptcha form elements
\Zend_Service_ReCaptcha_Exception |
---|
string
getHttpClient() : \Zend_Http_Client
\Zend_Http_Client
getIp() : string
string
getOption(string $key) : mixed
string
mixed
getOptions() : array
array
getParam(string $key) : mixed
string
mixed
getParams() : array
array
getPrivateKey() : string
string
getPublicKey() : string
string
setHttpClient(\Zend_Http_Client $httpClient)
\Zend_Http_Client
setIp(string $ip) : \Zend_Service_ReCaptcha
string
\Zend_Service_ReCaptcha
setOption(string $key, string $value) : \Zend_Service_ReCaptcha
string
string
\Zend_Service_ReCaptcha
setOptions(array|\Zend_Config $options) : \Zend_Service_ReCaptcha
array
\Zend_Config
\Zend_Service_ReCaptcha_Exception |
---|
\Zend_Service_ReCaptcha
setParam(string $key, string $value) : \Zend_Service_ReCaptcha
string
string
\Zend_Service_ReCaptcha
setParams(array|\Zend_Config $params) : \Zend_Service_ReCaptcha
array
\Zend_Config
\Zend_Service_ReCaptcha_Exception |
---|
\Zend_Service_ReCaptcha
setPrivateKey(string $privateKey) : \Zend_Service_ReCaptcha
string
\Zend_Service_ReCaptcha
setPublicKey(string $publicKey) : \Zend_Service_ReCaptcha
string
\Zend_Service_ReCaptcha
verify(string $challengeField, string $responseField) : \Zend_Service_ReCaptcha_Response
This method calls up the post method and returns a Zend_Service_ReCaptcha_Response object.
string
string
\Zend_Service_ReCaptcha_Response
_post(string $challengeField, string $responseField) : \Zend_Http_Response
string
string
\Zend_Service_ReCaptcha_Exception |
---|
\Zend_Http_Response
$_httpClient : \Zend_Http_Client
null
$_ip : string
null
$_params : array
array('ssl' => false, 'error' => null, 'xhtml' => false)
$_privateKey : string
null
$_publicKey : string
null
$_response : \Zend_Service_ReCaptcha_Response
null
API_SECURE_SERVER = 'https://www.google.com/recaptcha/api' : string
API_SERVER = 'http://www.google.com/recaptcha/api' : string
VERIFY_SERVER = 'http://www.google.com/recaptcha/api/verify' : string