Service::getTypeIdByRecipientTypeId

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Service
  4. getTypeIdByRecipientTypeId
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/returncustomer/service.php
  • Класс: Bitrix\Sender\Integration\Crm\ReturnCustomer\Service
  • Вызов: Service::getTypeIdByRecipientTypeId
static function getTypeIdByRecipientTypeId($recipientTypeId)
{
	$map = [
		Recipient\Type::CRM_CONTACT_ID => \CCrmOwnerType::Contact,
		Recipient\Type::CRM_COMPANY_ID => \CCrmOwnerType::Company,
		Recipient\Type::CRM_LEAD_ID => \CCrmOwnerType::Lead,
	];

	return isset($map[$recipientTypeId]) ? $map[$recipientTypeId] : null;
}

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