silverstripe-mathspamprotec.../code/MathSpamProtector.php

30 lines
606 B
PHP
Raw Normal View History

<?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);
}
2015-11-21 07:27:13 +01:00
/**
* Not used by MathSpamProtector
*/
public function setFieldMapping($fieldMapping)
{
}
}