\AkismetSpamProtector
Spam protector for Akismet
- Author: Damian Mooyman
Synopsis
class AkismetSpamProtector
implements
SpamProtector
{
- // members
- private array $fieldMapping = ;
- protected static Akismet $_api = NULL;
- protected static $_api_key = NULL;
- // methods
- public static void set_api_key()
- protected static string get_api_key()
- public static Akismet api()
- public void getFormField()
- public void setFieldMapping()
Hierarchy
Implements
- SpamProtector
Members
private
- $fieldMapping — array
protected
- $_api
—
TijsVerkoyen\Akismet\Akismet
Cached API object - $_api_key
—
string
Overridden API key
Methods
protected
- get_api_key() — Get the API key
public
- api() — Retrieves Akismet API object singleton
- getFormField()
- setFieldMapping()
- set_api_key() — Set the API key