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_Invisible
+ Graphe d'héritage de PlgCaptchaRecaptcha_Invisible:

Fonctions membres publiques

 onPrivacyCollectAdminCapabilities ()
 
 onInit ($id='dynamic_recaptcha_invisible_1')
 
 onDisplay ($name=null, $id='dynamic_recaptcha_invisible_1', $class='')
 
 onCheckAnswer ($code=null)
 
 onSetupField (\Joomla\CMS\Form\Field\CaptchaField $field, \SimpleXMLElement $element)
 

Attributs protégés

 $autoloadLanguage = true
 

Fonctions membres privées

 getResponse ($privatekey, $remoteip, $response)
 

Description détaillée

Invisible reCAPTCHA Plugin.

Depuis
3.9.0

Documentation des fonctions membres

◆ getResponse()

getResponse (   $privatekey,
  $remoteip,
  $response 
)
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.
Renvoie
boolean True if response is good | False if response is bad.
Depuis
3.9.0
Exceptions

◆ 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
boolean True if the answer is correct, false otherwise
Depuis
3.9.0
Exceptions

Références $input.

◆ onDisplay()

onDisplay (   $name = null,
  $id = 'dynamic_recaptcha_invisible_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
3.9.0

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

◆ onInit()

onInit (   $id = 'dynamic_recaptcha_invisible_1')

Initialise the captcha

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

Références $file.

◆ onPrivacyCollectAdminCapabilities()

onPrivacyCollectAdminCapabilities ( )

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

Renvoie
array
Depuis
3.9.0

◆ onSetupField()

onSetupField ( \Joomla\CMS\Form\Field\CaptchaField  $field,
\SimpleXMLElement  $element 
)

Method to react on the setup of a captcha field. Gives the possibility to change the field and/or the XML element for the field.

Paramètres
\Joomla\CMS\Form\Field\CaptchaField$fieldCaptcha field instance
\SimpleXMLElement$elementXML form definition
Renvoie
void
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 :