Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct (Socket $socket=null) | |
submit (RequestParameters $params) | |
Champs de données | |
const | RECAPTCHA_HOST = 'www.google.com' |
const | SITE_VERIFY_PATH = '/recaptcha/api/siteverify' |
const | BAD_REQUEST = '{"success": false, "error-codes": ["invalid-request"]}' |
const | BAD_RESPONSE = '{"success": false, "error-codes": ["invalid-response"]}' |
Attributs privés | |
$socket | |
Sends a POST request to the reCAPTCHA service, but makes use of fsockopen() instead of get_file_contents(). This is to account for people who may be on servers where allow_furl_open is disabled.
Constructor
\ReCaptcha\RequestMethod\Socket | $socket | optional socket, injectable for testing |
Références SocketPost\$socket.
submit | ( | RequestParameters | $params | ) |
Submit the POST request with the specified parameters.
RequestParameters | $params | Request parameters |
Implémente RequestMethod.
|
private |
Référencé par SocketPost\__construct().
const BAD_REQUEST = '{"success": false, "error-codes": ["invalid-request"]}' |
string Bad request error
const BAD_RESPONSE = '{"success": false, "error-codes": ["invalid-response"]}' |
string Bad response error
const RECAPTCHA_HOST = 'www.google.com' |
reCAPTCHA service host. string
const SITE_VERIFY_PATH = '/recaptcha/api/siteverify' |
string reCAPTCHA service path