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
string API_SERVER = 'http://api.recaptcha.net'
URI to the regular API
Detailsstring API_SECURE_SERVER = 'https://api-secure.recaptcha.net'
URI to the secure API
Detailsstring VERIFY_SERVER = 'http://api-verify.recaptcha.net/verify'
URI to the verify server
Detailsstring $_ip = 'null'Ip address used when verifying user input
Detailsarray $_options = 'array'Options for tailoring reCaptcha
See the different options on http://recaptcha.net/apidocs/captcha/client.html
Detailsarray $_params = 'array'Parameters for the object
Detailsstring $_privateKey = 'null'Private key used when verifying user input
Detailsstring $_publicKey = 'null'Public key used when displaying the captcha
DetailsZend_Service_ReCaptcha_Response $_response = 'null'Response from the verify server
Details__construct(
string $publicKey
=
null, string $privateKey
=
null, array|array|Zend_Config $params
=
null, array $options
=
null, string $ip
=
null
)
:
Class constructor
Details__toString(
)
:
stringSerialize as 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.
Details_post(
string $challengeField, string $responseField
)
:
Zend_Http_ResponsePost a solution to the verify server
DetailsgetHtml(
)
:
stringGet the HTML code for the captcha
This method uses the public key to fetch a recaptcha form.
DetailsgetIp(
)
:
stringGet the ip property
DetailsgetOption(
string $key
)
:
mixedGet a single option
DetailsgetOptions(
)
:
arrayGet the options array
DetailsgetParam(
string $key
)
:
mixedGet a single parameter
DetailsgetParams(
)
:
arrayGet the parameter array
DetailsgetPrivateKey(
)
:
stringGet the private key
DetailsgetPublicKey(
)
:
stringGet the public key
DetailssetIp(
string $ip
)
:
Zend_Service_ReCaptchaSet the ip property
DetailssetOption(
string $key, string $value
)
:
Zend_Service_ReCaptchaSet a single option
DetailssetOptions(
array|Zend_Config $options
)
:
Zend_Service_ReCaptchaSet options
DetailssetParam(
string $key, string $value
)
:
Zend_Service_ReCaptchaSet a single parameter
DetailssetParams(
array|Zend_Config $params
)
:
Zend_Service_ReCaptchaSet parameters
DetailssetPrivateKey(
string $privateKey
)
:
Zend_Service_ReCaptchaSet the private key
DetailssetPublicKey(
string $publicKey
)
:
Zend_Service_ReCaptchaSet the public key
Detailsverify(
string $challengeField, string $responseField
)
:
Zend_Service_ReCaptcha_ResponseVerify the user input
This method calls up the post method and returns a Zend_Service_ReCaptcha_Response object.
Details