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é
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe PlgCaptchaRecaptcha
+ Graphe d'héritage de PlgCaptchaRecaptcha:

Fonctions membres publiques

 onPrivacyCollectAdminCapabilities ()
 
 onInit ($id='dynamic_recaptcha_1')
 
 onDisplay ($name=null, $id='dynamic_recaptcha_1', $class='')
 
 onCheckAnswer ($code=null)
 

Attributs protégés

 $autoloadLanguage = true
 

Fonctions membres privées

 getResponse ($privatekey, $remoteip, $response, $challenge=null)
 
 _recaptcha_qsencode ($data)
 
 _recaptcha_http_post ($host, $path, $data, $port=80)
 
 _getLanguage ()
 

Description détaillée

Recaptcha Plugin Based on the official recaptcha library( https://packagist.org/packages/google/recaptcha )

Depuis
2.5

Documentation des fonctions membres

◆ _getLanguage()

_getLanguage ( )
private

Get the language tag or a custom translation

Renvoie
string
Depuis
2.5

Références $language.

◆ _recaptcha_http_post()

_recaptcha_http_post (   $host,
  $path,
  $data,
  $port = 80 
)
private

Submits an HTTP POST to a reCAPTCHA server.

Paramètres
string$hostHost name to POST to.
string$pathPath on host to POST to.
array$dataData to be POSTed.
int$portOptional port number on host.
Renvoie
array Response
Depuis
2.5

Références $data.

◆ _recaptcha_qsencode()

_recaptcha_qsencode (   $data)
private

Encodes the given data into a query string format.

Paramètres
array$dataArray of string elements to be encoded
Renvoie
string Encoded request
Depuis
2.5

Références $data, $key, et $value.

◆ getResponse()

getResponse (   $privatekey,
  $remoteip,
  $response,
  $challenge = null 
)
private

Get the reCaptcha response.

Paramètres
string$privatekeyThe private key for authentication.
string$remoteipThe remote IP of the visitor.
string$responseThe response received from Google.
string$challengeThe challenge field from the reCaptcha. Only for 1.0
Renvoie
bool True if response is good | False if response is bad.
Depuis
3.4
Exceptions

Références $version.

◆ onCheckAnswer()

onCheckAnswer (   $code = null)

Calls an HTTP POST function to verify if the user's guess was correct

Paramètres
string$codeAnswer provided by user. Not needed for the Recaptcha implementation
Renvoie
True if the answer is correct, false otherwise
Depuis
2.5
Exceptions

Références $input, $version, et null.

◆ onDisplay()

onDisplay (   $name = null,
  $id = 'dynamic_recaptcha_1',
  $class = '' 
)

Gets the challenge HTML

Paramètres
string$nameThe name of the field. Not Used.
string$idThe id of the field.
string$classThe class of the field.
Renvoie
string The HTML to be embedded in the form.
Depuis
2.5

Références $class, et $id.

◆ onInit()

onInit (   $id = 'dynamic_recaptcha_1')

Initialise the captcha

Paramètres
string$idThe id of the field.
Renvoie
Boolean True on success, false otherwise
Depuis
2.5
Exceptions

Références $file, $id, et getDocument.

◆ onPrivacyCollectAdminCapabilities()

onPrivacyCollectAdminCapabilities ( )

Reports the privacy related capabilities for this plugin to site administrators.

Renvoie
array
Depuis
3.9.0

Documentation des champs

◆ $autoloadLanguage

$autoloadLanguage = true
protected

La documentation de cette classe a été générée à partir du fichier suivant :