CMS  Version 3.9
recaptcha_v2_manager.inc
Go to the documentation of this file.
1 <?php
7 Fakoli::using("settings");
8 
16 {
17  static $verificationURL = 'https://www.google.com/recaptcha/api/siteverify';
18 
19  function RecaptchaV2Manager()
20  {
21 
22  }
23 
24 
25  static function setDefaults()
26  {
27  Settings::setDefaultValue("captcha", "recaptcha_site_key", "", String, "", "reCAPTCHA v2", "", 1);
28  Settings::setDefaultValue("captcha", "recaptcha_secret_key", "", String, "", "reCAPTCHA v2", "", 2);
29  }
30 
31  static function registerCaptchaProvider()
32  {
34  }
35 
36 
37 }
38 ?>
static registerCaptchaProvider($name, $class)
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116
Provides a central management class for event handlers and common functionality for the recaptcha_v2 ...
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