320 if ($this->validationRegExp ===
null)
322 $cache = Data\Cache::createInstance();
323 if($cache->initCache($this->cacheTtl, $this->cacheId, $this->cacheInitPath) )
325 $this->validationRegExp = $cache->getVars();
330 $cache->startDataCache();
331 $cache->endDataCache($this->validationRegExp);
335 return $this->validationRegExp;
345 Config\Option::set(
'security', $this->optionPrefix.
'hosts', $this->hosts,
'');
346 Config\Option::set(
'security', $this->optionPrefix.
'action', $this->action,
'');
347 Config\Option::set(
'security', $this->optionPrefix.
'action_options', serialize($this->actionOptions),
'');
348 Config\Option::set(
'security', $this->optionPrefix.
'logging', $this->isLogNeeded,
'');
349 if (!is_null($this->isActive))
354 EventManager::getInstance()
355 ->registerEventHandler(
'main',
'OnPageStart',
'security', get_class($this),
'onPageStart');
359 EventManager::getInstance()
360 ->unRegisterEventHandler(
'main',
'OnPageStart',
'security', get_class($this),
'onPageStart');
363 Data\Cache::createInstance()->clean($this->cacheId, $this->cacheInitPath);