• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatelist.php
  • Класс: Bitrix\Crm\Integrity\DuplicateList
  • Вызов: DuplicateList::getTypeIDs
protected function getTypeIDs()
{
	$result = array();
	if (($this->typeID & DuplicateIndexType::PERSON) !== 0)
	{
		$result[] = DuplicateIndexType::PERSON;
	}
	if (($this->typeID & DuplicateIndexType::ORGANIZATION) !== 0)
	{
		$result[] = DuplicateIndexType::ORGANIZATION;
	}
	if (($this->typeID & DuplicateIndexType::COMMUNICATION_PHONE) !== 0)
	{
		$result[] = DuplicateIndexType::COMMUNICATION_PHONE;
	}
	if (($this->typeID & DuplicateIndexType::COMMUNICATION_EMAIL) !== 0)
	{
		$result[] = DuplicateIndexType::COMMUNICATION_EMAIL;
	}
	foreach (DuplicateRequisiteCriterion::getSupportedDedupeTypes() as $typeID)
	{
		if (($this->typeID & $typeID) !== 0)
		{
			$result[] = $typeID;
		}
	}
	foreach (DuplicateBankDetailCriterion::getSupportedDedupeTypes() as $typeID)
	{
		if (($this->typeID & $typeID) !== 0)
		{
			$result[] = $typeID;
		}
	}
	foreach (DuplicateVolatileCriterion::getSupportedDedupeTypes() as $typeID)
	{
		if (($this->typeID & $typeID) !== 0)
		{
			$result[] = $typeID;
		}
	}
	return $result;
}