• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/hostrestriction.php
  • Класс: BitrixSecurityHostRestriction
  • Вызов: HostRestriction::setProperties
public function setProperties(array $properties)
{
	if (isset($properties['hosts']))
	{
		$this->setHosts($properties['hosts']);
	}

	if (isset($properties['action']))
	{
		if (isset($properties['action_options']))
		{
			$this->setAction($properties['action'], $properties['action_options']);
		}
		else
		{
			$this->setAction($properties['action']);
		}
	}

	if (isset($properties['logging']))
	{
		$this->setLogging($properties['logging']);
	}

	if (isset($properties['active']))
	{
		$this->setActive($properties['active']);
	}

	return $this;
}