• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/hostrestriction.php
  • Класс: BitrixSecurityHostRestriction
  • Вызов: HostRestriction::getValidationRegExp
public function getValidationRegExp()
{
	if ($this->validationRegExp === null)
	{
		$cache = DataCache::createInstance();
		if($cache->initCache($this->cacheTtl, $this->cacheId, $this->cacheInitPath) )
		{
			$this->validationRegExp = $cache->getVars();
		}
		else
		{
			$this->validationRegExp = $this->genValidationRegExp($this->hosts);
			$cache->startDataCache();
			$cache->endDataCache($this->validationRegExp);
		}
	}

	return $this->validationRegExp;
}