CustomHtmlForm\Forms\GoogleRecaptchaField
A Google reCAPTCHA field.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class GoogleRecaptchaField
extends FormField
{
- // members
- private static string $recaptcha_secret = '';
- private static string $recaptcha_site_key = '';
- // methods
- public static string get_recaptcha_secret()
- public static void set_recaptcha_secret()
- public string getRecaptchaSecret()
- public static string get_recaptcha_site_key()
- public static void set_recaptcha_site_key()
- public string getRecaptchaSiteKey()
- public boolean validate()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $recaptcha_secret
—
string
Private reCAPTCHA secret. - $recaptcha_site_key
—
string
reCAPTCHA site key.
Methods
public
- getRecaptchaSecret() — Returns the private reCAPTCHA secret.
- getRecaptchaSiteKey() — Returns the reCAPTCHA site_key.
- get_recaptcha_secret() — Returns the private reCAPTCHA secret.
- get_recaptcha_site_key() — Returns the reCAPTCHA site_key.
- set_recaptcha_secret() — Sets the private reCAPTCHA secret.
- set_recaptcha_site_key() — Sets the reCAPTCHA site_key.
- validate() — Validate by submitting to external service