silverstripe-mathspamprotec.../code/MathSpamProtector.php
2018-04-19 22:06:41 +07:00

30 lines
608 B
PHP

<?php
/**
* @package mathspamprotection
*/
namespace SilverStripe\SpamProtection\Maths;
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)
{
}
}