CMS
Version 3.9
recaptcha_v2_manager.inc
Go to the documentation of this file.
1
<?php
7
Fakoli::using
(
"settings"
);
8
15
class
RecaptchaV2Manager
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
{
33
CaptchaManager::registerCaptchaProvider
(
"reCAPTCHA v2"
,
RecaptchaV2FieldRenderer
);
34
}
35
36
37
}
38
?>
CaptchaManager\registerCaptchaProvider
static registerCaptchaProvider($name, $class)
Definition:
captcha_manager.inc:30
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
RecaptchaV2FieldRenderer
Definition:
recaptcha_v2_field_renderer.inc:96
RecaptchaV2Manager
Provides a central management class for event handlers and common functionality for the recaptcha_v2 ...
Definition:
recaptcha_v2_manager.inc:16
RecaptchaV2Manager\RecaptchaV2Manager
RecaptchaV2Manager()
Definition:
recaptcha_v2_manager.inc:19
RecaptchaV2Manager\setDefaults
static setDefaults()
Definition:
recaptcha_v2_manager.inc:25
RecaptchaV2Manager\$verificationURL
static $verificationURL
Definition:
recaptcha_v2_manager.inc:17
RecaptchaV2Manager\registerCaptchaProvider
static registerCaptchaProvider()
Definition:
recaptcha_v2_manager.inc:31
Settings\setDefaultValue
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
code
cms.sonjara.com
cms
components
recaptcha_v2
recaptcha_v2_manager.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1