• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatecommunicationcriterion.php
  • Класс: Bitrix\Crm\Integrity\DuplicateCommunicationCriterion
  • Вызов: DuplicateCommunicationCriterion::getIndexTypeID
public function getIndexTypeID()
{
	if($this->communicationType === CommunicationType::PHONE_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_PHONE;
	}
	elseif($this->communicationType === CommunicationType::EMAIL_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_EMAIL;
	}
	elseif($this->communicationType === CommunicationType::SLUSER_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_SLUSER;
	}
	elseif($this->communicationType === CommunicationType::FACEBOOK_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_FACEBOOK;
	}
	elseif($this->communicationType === CommunicationType::TELEGRAM_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_TELEGRAM;
	}
	elseif($this->communicationType === CommunicationType::VK_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_VK;
	}
	elseif($this->communicationType === CommunicationType::SKYPE_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_SKYPE;
	}
	elseif($this->communicationType === CommunicationType::BITRIX24_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_BITRIX24;
	}
	elseif($this->communicationType === CommunicationType::OPENLINE_NAME)
	{
		return DuplicateIndexType::COMMUNICATION_OPENLINE;
	}
	else
	{
		return DuplicateIndexType::UNDEFINED;
	}
}