CCrmRestEventDispatcher::getOwnerTypeNameByEntityId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmRestEventDispatcher
  4. getOwnerTypeNameByEntityId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/restservice.php
  • Класс: \CCrmRestEventDispatcher
  • Вызов: CCrmRestEventDispatcher::getOwnerTypeNameByEntityId
static function getOwnerTypeNameByEntityId($entityId)
{
	$result = '';

	static::ensureEntityIdsDefined();

	$ownerTypeId = array_search($entityId, self::$entityIds, true);
	if (CCrmOwnerType::IsDefined($ownerTypeId))
	{
		$result = CCrmOwnerType::ResolveName($ownerTypeId);
	}

	return $result;
}

Добавить комментарий