• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/usageentity.php
  • Класс: BitrixRestUsageEntityTable
  • Вызов: UsageEntityTable::getEntityInfo
static function getEntityInfo($entityType, $entityId)
{
	$key = $entityType.'|'.$entityId;
	if (!isset(static::$info[$key]))
	{
		if ($entityType == self::ENTITY_TYPE_APPLICATION)
		{
			$appInfo = AppTable::getByClientId($entityId);
			static::$info[$key] = array(
				'ENTITY_ID' => $appInfo['ID'],
				'ENTITY_CODE' => $appInfo['CLIENT_ID'],
			);
		}
		else
		{
			static::$info[$key] = array(
				'ENTITY_ID' => $entityId,
				'ENTITY_CODE' => '',
			);
		}
	}
	return static::$info[$key];
}