예제 #1
0
파일: Comments.php 프로젝트: jtietema/Fizzy
 public function verifyIsSpam()
 {
     $fizzySpam = new Fizzy_Spam();
     return $fizzySpam->isSpam($this->getSpamDocument());
 }
예제 #2
0
 /**
  * @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);
 }
예제 #3
0
파일: Spam.php 프로젝트: jtietema/Fizzy
 /**
  * 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;
 }