mirror of
https://github.com/silverstripe/silverstripe-mathspamprotection
synced 2024-10-22 08:05:52 +02:00
30 lines
606 B
PHP
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)
|
|
{
|
|
}
|
|
}
|