• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/app.php
  • Класс: BitrixRestAppTable
  • Вызов: AppTable::getAppType
static function getAppType($code, $version = false)
{
	$result = false;
	$cache = Cache::createInstance();
	if ($cache->initCache(static::CACHE_TTL, 'appType'.md5($code.$version), static::CACHE_PATH))
	{
		$result = $cache->getVars();
	}
	elseif ($cache->startDataCache())
	{
		$appDetailInfo = Client::getInstall($code, $version);
		$result = ($appDetailInfo['ITEMS']['TYPE'])?:false;
		$cache->endDataCache($result);
	}

	return $result;
}