Source of file HoneypotProtection.php
Size: 0,735 Bytes - Last Modified: 2021-12-23T10:58:10+00:00
/var/www/docs.ssmods.com/process/src/code/FormProtection/HoneypotProtection.php
123456789101112131415161718192021222324 | <?php namespace Webfox\SilverStripe\FormProtection\Honeypot\HoneypotProtection; use Webfox\SilverStripe\FormProtection\Honeypot\FormField\HoneypotField; class HoneypotProtection implements \SpamProtector { /** * Return the {@link FormField} associated with this protector. * * Simply return some HTML to be injected at the end of the form. * If a spam method multiple form fields then return a {@link FieldGroup}. * * @param string $name * @param string $title * @param mixed $value * * @return \FormField The resulting field */ public function getFormField($name=null, $title=null, $value=null) { return HoneypotField::create($name, $title, $value); } } |