2 class SSAkismet
extends Akismet
{
3 private static $apiKey;
4 private static $saveSpam = false;
6 static function setAPIKey($key) {
10 static function isEnabled() {
11 return (self
::$apiKey != null) ?
true : false;
14 static function setSaveSpam($save = true) {
15 SSAkismet
::$saveSpam = $save;
18 static function getSaveSpam() {
19 return SSAkismet
::$saveSpam;
22 public function __construct() {
23 parent
::__construct(Director
::absoluteBaseURL(), self
::$apiKey);