public function verifyIsSpam() { $fizzySpam = new Fizzy_Spam(); return $fizzySpam->isSpam($this->getSpamDocument()); }
/** * @todo make adapter class configurable */ protected function _initSpam() { $this->bootstrap('Config'); $config = $this->getContainer()->config; $adapter = new Fizzy_Spam_Adapter_Akismet($config->spam->akismetKey, $config->spam->siteUrl); Fizzy_Spam::setDefaultAdapter($adapter); }
/** * Set the default Adapter to be used when no Adapter is specified in the * constructor. * * @param <type> $adapter */ public static function setDefaultAdapter(Fizzy_Spam_Adapter_Interface $adapter) { self::$_defaultAdapter = $adapter; }