예제 #1
0
 static function getWhitelists()
 {
     return SpamRegexBatch::regexesFromMessage('spam-whitelist');
 }
	/**
	 * Returns the (local) whitelist
	 *
	 * @return array Regular expressions
	 */
	public function getWhitelists() {
		return SpamRegexBatch::regexesFromMessage( "{$this->getBlacklistType()}-whitelist" );
	}
 /**
  * Returns the (local) whitelist
  *
  * @return array Regular expressions
  */
 public function getWhitelists()
 {
     $that = $this;
     $type = $this->getBlacklistType();
     return ObjectCache::getMainWANInstance()->getWithSetCallback(wfMemcKey('spamblacklist', $type, 'whitelist-regex'), function () use($that, $type) {
         return SpamRegexBatch::regexesFromMessage("{$type}-whitelist", $that);
     }, $this->expiryTime);
 }