- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicateindextype.php
- Класс: Bitrix\Crm\Integrity\DuplicateIndexType
- Вызов: DuplicateIndexType::convertFromCommunicationType
static function convertFromCommunicationType($commTypeID) { $commTypeID = (int)$commTypeID; if($commTypeID === CommunicationType::PHONE) { return self::COMMUNICATION_PHONE; } elseif($commTypeID === CommunicationType::EMAIL) { return self::COMMUNICATION_EMAIL; } elseif($commTypeID === CommunicationType::FACEBOOK) { return self::COMMUNICATION_FACEBOOK; } elseif($commTypeID === CommunicationType::TELEGRAM) { return self::COMMUNICATION_TELEGRAM; } elseif($commTypeID === CommunicationType::VK) { return self::COMMUNICATION_VK; } elseif($commTypeID === CommunicationType::SKYPE) { return self::COMMUNICATION_SKYPE; } elseif($commTypeID === CommunicationType::BITRIX24) { return self::COMMUNICATION_BITRIX24; } elseif($commTypeID === CommunicationType::OPENLINE) { return self::COMMUNICATION_OPENLINE; } elseif($commTypeID === CommunicationType::VIBER) { return self::COMMUNICATION_VIBER; } elseif($commTypeID === CommunicationType::SLUSER) { return self::COMMUNICATION_SLUSER; } return self::UNDEFINED; }