[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/plugins/captcha/recaptcha_invisible/ -> recaptcha_invisible.php (summary)

(no description)

Copyright: (C) 2018 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 205 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PlgCaptchaRecaptcha_Invisible:: (6 methods):
  onPrivacyCollectAdminCapabilities()
  onInit()
  onDisplay()
  onCheckAnswer()
  onSetupField()
  getResponse()


Class: PlgCaptchaRecaptcha_Invisible  - X-Ref

Invisible reCAPTCHA Plugin.

onPrivacyCollectAdminCapabilities()   X-Ref
Reports the privacy related capabilities for this plugin to site administrators.

return: array

onInit($id = 'dynamic_recaptcha_invisible_1')   X-Ref
Initialise the captcha

param: string  $id  The id of the field.
return: boolean True on success, false otherwise

onDisplay($name = null, $id = 'dynamic_recaptcha_invisible_1', $class = '')   X-Ref
Gets the challenge HTML

param: string  $name   The name of the field. Not Used.
param: string  $id     The id of the field.
param: string  $class  The class of the field.
return: string  The HTML to be embedded in the form.

onCheckAnswer($code = null)   X-Ref
Calls an HTTP POST function to verify if the user's guess was correct

param: string  $code  Answer provided by user. Not needed for the Recaptcha implementation
return: boolean  True if the answer is correct, false otherwise

onSetupField(\Joomla\CMS\Form\Field\CaptchaField $field, \SimpleXMLElement $element)   X-Ref
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: \Joomla\CMS\Form\Field\CaptchaField  $field    Captcha field instance
param: \SimpleXMLElement                    $element  XML form definition
return: void

getResponse($privatekey, $remoteip, $response)   X-Ref
Get the reCaptcha response.

param: string  $privatekey  The private key for authentication.
param: string  $remoteip    The remote IP of the visitor.
param: string  $response    The response received from Google.
return: boolean  True if response is good | False if response is bad.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer