Use simply 'group' instead of 'security group' for consistency in alert about no...
[silverstripe-elijah.git] / code / sitefeatures / SSAkismet.php
blob89d610bcf297d2d442721b6c6172051129d7bda3
1 <?php
2 class SSAkismet extends Akismet {
3 private static $apiKey;
4 private static $saveSpam = false;
6 static function setAPIKey($key) {
7 self::$apiKey = $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);