mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
34 lines
646 B
PHP
34 lines
646 B
PHP
<?php
|
|
/**
|
|
* This class acts as a template for spam protecting form field, for instance MollomField.
|
|
*
|
|
* @package spamprotection
|
|
*/
|
|
abstract class SpamProtectorField extends FormField {
|
|
|
|
/**
|
|
* Fields to map spam protection too.
|
|
*
|
|
* @var array
|
|
*/
|
|
private $spamFieldMapping = array();
|
|
|
|
|
|
/**
|
|
* Set the fields to map spam protection too
|
|
*
|
|
* @param Array array of Field Names
|
|
*/
|
|
public function setFieldMapping($array) {
|
|
$this->spamFieldMapping = $array;
|
|
}
|
|
|
|
/**
|
|
* Get the fields that are mapped via spam protection
|
|
*
|
|
* @return Array
|
|
*/
|
|
public function getFieldMapping() {
|
|
return $this->spamFieldMapping;
|
|
}
|
|
} |