Symbiote\SilverStripe\SpamProtection\Honeypot\FormField\HoneypotField
Synopsis
class HoneypotField
extends TextField
{
- // members
- private static integer $time_limit = 5;
- // methods
- public bool validate()
- public string Title()
- public string Type()
- public string Field()
- protected string createHoneypotField()
- protected string createTimestampField()
- public string getFieldStyle()
Hierarchy
Extends
- SilverStripe\Forms\TextField
Members
private
- $time_limit
—
int
The number of seconds before you can submit a valid request.
Methods
protected
- createHoneypotField() — Create the Captcha Field.
- createTimestampField() — Create the Timestamp Field.
public
- Field() — Override the Field to add the Captcha and Timestamp fields.
- Title() — Since this isn't a hidden field, the title will continue to show in the form.
- Type() — Override the Type to remove the class namespace.
- getFieldStyle() — Return a configured style rule for the fields, if none is configured use a default display:none rule
- validate() — Reject the field if the honeypot has been filled or if the form has been submitted to quickly.