• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/engine/yandex.php
  • Класс: BitrixSeoEngineYandex
  • Вызов: Yandex::getHostId
private function getHostId($domain)
{
//		get saved host ID
	if (isset($this->hostIds[$domain]) && !empty($this->hostIds[$domain]))
		return $this->hostIds[$domain];

//		else get host ID from API (host will be saved in local)
	$hosts = $this->getFeeds();
	
	return $hosts[$domain]['host_id'];
}