CMS  Version 3.9
RecaptchaV2Manager Class Reference

Provides a central management class for event handlers and common functionality for the recaptcha_v2 component. More...

Public Member Functions

 RecaptchaV2Manager ()
 

Static Public Member Functions

static setDefaults ()
 
static registerCaptchaProvider ()
 

Static Public Attributes

static $verificationURL = 'https://www.google.com/recaptcha/api/siteverify'
 

Detailed Description

Provides a central management class for event handlers and common functionality for the recaptcha_v2 component.

Definition at line 15 of file recaptcha_v2_manager.inc.

Member Function Documentation

◆ RecaptchaV2Manager()

RecaptchaV2Manager::RecaptchaV2Manager ( )

Definition at line 19 of file recaptcha_v2_manager.inc.

20  {
21 
22  }

◆ registerCaptchaProvider()

static RecaptchaV2Manager::registerCaptchaProvider ( )
static

Definition at line 31 of file recaptcha_v2_manager.inc.

◆ setDefaults()

static RecaptchaV2Manager::setDefaults ( )
static

Definition at line 25 of file recaptcha_v2_manager.inc.

26  {
27  Settings::setDefaultValue("captcha", "recaptcha_site_key", "", String, "", "reCAPTCHA v2", "", 1);
28  Settings::setDefaultValue("captcha", "recaptcha_secret_key", "", String, "", "reCAPTCHA v2", "", 2);
29  }
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
Definition: settings.inc:174

Member Data Documentation

◆ $verificationURL

RecaptchaV2Manager::$verificationURL = 'https://www.google.com/recaptcha/api/siteverify'
static

Definition at line 17 of file recaptcha_v2_manager.inc.


The documentation for this class was generated from the following file: