\InvisibleSpamProtectorField
{@link FormField} for adding an optional Invisibles protection question to a form.
Synopsis
class InvisibleSpamProtectorField
extends FormField
{
- // members
- public static boolean $always_show_captcha = false;
- public static boolean $force_check_on_members = false;
- // methods
- private static bool showAntiSpam()
- public HTML Field()
- public bool validate()
Hierarchy
Extends
- FormField
Members
public
- $always_show_captcha
- $force_check_on_members
Methods
private
- showAntiSpam() — Return if we should show the captcha to the user. Checks for Molloms Request and if the user is currently logged in as then it can be assumed they are not spam
public
- Field() — Outputs the field HTML to the the web browser
- validate() — Validates the value submitted by the user with the one saved into the {@link Session} and then notify callback object with the spam checking result.