Meldgaard\SilverStripe\ReCaptcha\Form\RecaptchaField
Synopsis
class RecaptchaField
extends FormField
{
- // members
- protected string $schemaDataType = FormField::SCHEMA_DATA_TYPE_HIDDEN;
- protected string $inputType = 'hidden';
- private string $recaptcha_url = 'https://www.google.com/recaptcha/api/siteverify';
- private integer $customFunction = 0;
- private string $customFunctionName = 'none';
- // methods
- public void __construct()
- public void getSiteKey()
- public void getSecretKey()
- public void getSpamLevel()
- public DBHTMLText Field()
- public bool validate()
- public bool IsHidden()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Members
private
- $customFunction
- $customFunctionName
- $recaptcha_url — string
protected
- $inputType — string
- $schemaDataType — string
Methods
public
- __construct() — RecaptchaField constructor.
- Field()
- IsHidden()
- getSecretKey()
- getSiteKey()
- getSpamLevel()
- validate()