silverstripe-mathspamprotec.../code/MathSpamProtector.php
2018-04-20 14:19:30 +07:00

30 lines
606 B
PHP

<?php
/**
* @package mathspamprotection
*/
namespace SilverStripe\MathSpamProtection;
use SilverStripe\SpamProtection\SpamProtector;
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);
}
/**
* Not used by MathSpamProtector
*/
public function setFieldMapping($fieldMapping)
{
}
}