\RecaptchaField
The reCAPTCHA form field with validation logic.
Synopsis
class RecaptchaField
extends FormField
{
- // members
- private Locale $locale = NULL;
- private array $jsOptions = ;
- private array $css = ;
- // methods
- public void Field()
- public void validate()
- private null|string getClientIp()
- public RecaptchaField settings()
- public RecaptchaField setCSS()
- public RecaptchaField setLocale()
Hierarchy
Extends
- FormField
Members
private
- $css
—
array
CSS classes to apply to recaptcha base class - $jsOptions
—
array
JavaScript options array in the following form: array( 'theme' => 'dark' ); - $locale — Locale
Methods
private
- getClientIp() — Determins the client's IP.
public
- Field()
- setCSS() — Add one (String) or more (Array) CSS classes to apply to the recaptcha base tag
- setLocale() — Sets a locale for the field.
- settings() — Injection method for JavaScript options
- validate()