/**
  * Resets the object values to be re-used anew
  */
 public function reset()
 {
     parent::reset();
     $this->sCommentStatus = '';
     $this->sCommentStatusExplanation = '';
     self::$sSpamBlacklistFile = $this->getFeatureOptions()->getResourcesDir() . 'spamblacklist.txt';
 }
示例#2
0
 /**
  * @param ICWP_WPSF_FeatureHandler_Base $oFeatureOptions
  * @param string $sTableName
  *
  * @throws Exception
  */
 public function __construct($oFeatureOptions, $sTableName = null)
 {
     parent::__construct($oFeatureOptions);
     $this->setTableName($sTableName);
     $this->createCleanupCron();
     $this->initializeTable();
     add_action($this->getFeatureOptions()->doPluginPrefix('delete_plugin'), array($this, 'deleteTable'));
 }
 /**
  * @param array $aNoticeAttributes
  * @return bool
  */
 protected function getIfDisplayAdminNotice($aNoticeAttributes)
 {
     if (!parent::getIfDisplayAdminNotice($aNoticeAttributes)) {
         return false;
     }
     if (isset($aNoticeAttributes['delay_days']) && is_int($aNoticeAttributes['delay_days']) && $this->getInstallationDays() <= $aNoticeAttributes['delay_days']) {
         return false;
     }
     return true;
 }
 public function reset()
 {
     parent::reset();
     $this->nLoopProtect = 0;
 }
示例#5
0
 public function reset()
 {
     parent::reset();
     self::$sModeFile_EmailThrottled = dirname(__FILE__) . '/../mode.email_throttled';
 }