• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/channel/site.php
  • Класс: Bitrix\Crm\Tracking\Channel\Site
  • Вызов: Site::getItems
public function getItems()
{
	$list = Tracking\Internals\SiteTable::getList([
		'select' => ['ID', 'NAME' => 'HOST', 'ACTIVE', 'IS_INSTALLED'],
		'order' => ['ID' => 'DESC'],
		'cache' => ['ttl' => 36000]
	])->fetchAll();

	foreach ($list as $index => $item)
	{
		$item['ACTIVE'] = ($item['ACTIVE'] === 'Y' && $item['IS_INSTALLED'] === 'Y') ? 'Y' : 'N';
		unset($item['IS_INSTALLED']);
		$list[$index] = $item;
	}

	return $list;
}