2010-12-13 01:30:04 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @package mathspamprotection
|
|
|
|
*/
|
|
|
|
|
2018-04-20 09:19:30 +02:00
|
|
|
namespace SilverStripe\MathSpamProtection;
|
2018-04-19 17:06:41 +02:00
|
|
|
|
|
|
|
use SilverStripe\SpamProtection\SpamProtector;
|
|
|
|
|
2015-11-21 07:27:13 +01:00
|
|
|
class MathSpamProtector implements SpamProtector
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Returns the {@link MathSpamProtectorField} associated with this protector
|
|
|
|
*
|
|
|
|
* @return MathSpamProtectorField
|
|
|
|
*/
|
|
|
|
public function getFormField($name = null, $title = null, $value = null)
|
|
|
|
{
|
|
|
|
return new MathSpamProtectorField($name, $title, $value);
|
|
|
|
}
|
2014-02-18 22:13:39 +01:00
|
|
|
|
2015-11-21 07:27:13 +01:00
|
|
|
/**
|
|
|
|
* Not used by MathSpamProtector
|
|
|
|
*/
|
|
|
|
public function setFieldMapping($fieldMapping)
|
|
|
|
{
|
|
|
|
}
|
2014-02-18 22:13:39 +01:00
|
|
|
}
|