• Модуль: security
  • Путь к файлу: ~/bitrix/modules/security/lib/hostrestriction.php
  • Класс: BitrixSecurityHostRestriction
  • Вызов: HostRestriction::setActive
public function setActive($isActive = false)
{
	if (!is_bool($isActive))
		throw new ArgumentTypeException('isActive', 'bool');

	$this->isActive = $isActive;

	return $this;
}