diff --git a/code/MollomProtecter_Backup.php b/code/MollomProtecter_Backup.php deleted file mode 100644 index 5842a72..0000000 --- a/code/MollomProtecter_Backup.php +++ /dev/null @@ -1,80 +0,0 @@ -spanControlCallbackObj = $callbackObject; - } - - /* Map fields (by name) to Spam service's fields for spam checking */ - protected $fieldToPostTitle = ""; - - // it can be more than one fields mapped to post content - protected $fieldsToPostBody = array(); - - protected $fieldToAuthorName = ""; - - protected $fieldToAuthorUrl = ""; - - protected $fieldToAuthorEmail = ""; - - protected $fieldToAuthorOpenId = ""; - - function setFieldToPostTitle($fieldName) { - $this->fieldToPostTitle = $fieldName; - } - - /** - * Map array of fields where their value will be used as a mollom post body - * @param array - */ - function setFieldsToPostBody($fieldNames) { - $this->fieldsToPostBody = $fieldNames; - } - - function setfieldToAuthorName($fieldName) { - $this->fieldToAuthorName = $fieldName; - } - - function setFieldToAuthorUrl($fieldName) { - $this->fieldToAuthorUrl = $fieldName; - } - - function setFieldToAuthorEmail($fieldName) { - $this->fieldToAuthorEmail = $fieldName; - } - - function setFieldToAuthorOpenId($fieldName) { - $this->fieldToAuthorOpenId = $fieldName; - } - - /** - * Tell the callback object the spam checking response status - */ - protected function markAsSpam() { - if ($this->spanControlCallbackObj && $this->spanControlCallbackObj instanceof Spamable) { - $this->spanControlCallbackObj->markAsSpam($this->getForm()); - } - } - - /** - * Tell the callback object the spam checking response status - */ - protected function markAsHam() { - if ($this->spanControlCallbackObj && $this->spanControlCallbackObj instanceof Spamable) { - $this->spanControlCallbackObj->markAsHam($this->getForm()); - } - } -} -?> \ No newline at end of file