• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_catalog.php
  • Класс: \CAllCrmCatalog
  • Вызов: CAllCrmCatalog::GetByID
static function GetByID($ID)
{
	$arResult = CCrmEntityHelper::GetCached(self::CACHE_NAME, $ID);
	if (is_array($arResult))
	{
		return $arResult;
	}

	$dbRes = CCrmCatalog::GetList(array(), array('ID' => intval($ID)));
	$arResult = $dbRes->Fetch();

	if(is_array($arResult))
	{
		CCrmEntityHelper::SetCached(self::CACHE_NAME, $ID, $arResult);
	}
	return $arResult;
}