• Модуль: pull
  • Путь к файлу: ~/bitrix/modules/pull/lib/config.php
  • Класс: BitrixPullConfig
  • Вызов: Config::getHostId
static function getHostId()
{
	static $hostId = null;

	if ($hostId === null)
	{
		$hostId = Option::get("pull", "host_id", "");
	}
	if ($hostId == '')
	{
		$hostId = Random::getString(32);
		Option::set("pull", "host_id", $hostId);
	}

	return $hostId;
}