CCrmLiveFeed::ResolveEntityTypeID

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmLiveFeed
  4. ResolveEntityTypeID
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/livefeed.php
  • Класс: \CCrmLiveFeed
  • Вызов: CCrmLiveFeed::ResolveEntityTypeID
static function ResolveEntityTypeID($entityType)
{
	switch($entityType)
	{
		case self::Lead:
		{
			return CCrmOwnerType::Lead;
		}
		case self::Contact:
		{
			return CCrmOwnerType::Contact;
		}
		case self::Company:
		{
			return CCrmOwnerType::Company;
		}
		case self::Deal:
		{
			return CCrmOwnerType::Deal;
		}
		case self::Activity:
		{
			return CCrmOwnerType::Activity;
		}
		case self::Invoice:
		{
			return CCrmOwnerType::Invoice;
		}
		case self::Order:
		{
			return CCrmOwnerType::Order;
		}
		default:
		{
			return CCrmOwnerType::Undefined;
		}
	}
}

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