| @@ 12-22 (lines=11) @@ | ||
| 9 | /** |
|
| 10 | * @package spamprotection |
|
| 11 | */ |
|
| 12 | class FooProtector implements SpamProtector, TestOnly |
|
| 13 | { |
|
| 14 | public function getFormField($name = null, $title = null, $value = null) |
|
| 15 | { |
|
| 16 | return new TextField($name, 'Foo', $value); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function setFieldMapping($fieldMapping) |
|
| 20 | { |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 12-22 (lines=11) @@ | ||
| 9 | /** |
|
| 10 | * @package spamprotection |
|
| 11 | */ |
|
| 12 | class FooProtector implements SpamProtector, TestOnly |
|
| 13 | { |
|
| 14 | public function getFormField($name = null, $title = null, $value = null) |
|
| 15 | { |
|
| 16 | return new TextField($name, 'Foo', $value); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function setFieldMapping($fieldMapping) |
|
| 20 | { |
|
| 21 | } |
|
| 22 | } |
|
| 23 | ||
| @@ 9-19 (lines=11) @@ | ||
| 6 | use SilverStripe\Forms\TextField; |
|
| 7 | use SilverStripe\SpamProtection\SpamProtector; |
|
| 8 | ||
| 9 | class Protector implements SpamProtector, TestOnly |
|
| 10 | { |
|
| 11 | public function getFormField($name = null, $title = null, $value = null) |
|
| 12 | { |
|
| 13 | return new TextField($name, 'Foo', $value); |
|
| 14 | } |
|
| 15 | ||
| 16 | public function setFieldMapping($fieldMapping) |
|
| 17 | { |
|
| 18 | } |
|
| 19 | } |
|
| 20 | ||