CCrmLiveFeedEvent::GetEventID

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmLiveFeedEvent
  4. GetEventID
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/livefeed.php
  • Класс: \CCrmLiveFeedEvent
  • Вызов: CCrmLiveFeedEvent::GetEventID
static function GetEventID($entityTypeID, $eventType)
{
	switch($entityTypeID)
	{
		//Event IDs like crm_lead_add, crm_lead_add_comment
		case CCrmLiveFeedEntity::Lead:
		{
			return self::LeadPrefix.$eventType;
		}
		case CCrmLiveFeedEntity::Contact:
		{
			return self::ContactPrefix.$eventType;
		}
		case CCrmLiveFeedEntity::Company:
		{
			return self::CompanyPrefix.$eventType;
		}
		case CCrmLiveFeedEntity::Deal:
		{
			return self::DealPrefix.$eventType;
		}
		case CCrmLiveFeedEntity::Activity:
		{
			return self::ActivityPrefix.$eventType;
		}
		case CCrmLiveFeedEntity::Invoice:
		{
			return self::InvoicePrefix.$eventType;
		}
	}

	return '';
}

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