• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicatelist.php
  • Класс: Bitrix\Crm\Integrity\DuplicateList
  • Вызов: DuplicateList::setEntityTypeID
public function setEntityTypeID($entityTypeID)
{
	if (!is_numeric($entityTypeID))
	{
		throw new Main\ArgumentTypeException('entityTypeID', 'integer');
	}

	if (!is_int($entityTypeID))
	{
		$entityTypeID = intval($entityTypeID);
	}

	if ($entityTypeID !== \CCrmOwnerType::Lead
		&& $entityTypeID !== \CCrmOwnerType::Contact
		&& $entityTypeID !== \CCrmOwnerType::Company)
	{
		throw new Main\NotSupportedException("Criterion type(s): '" . \CCrmOwnerType::ResolveName($entityTypeID) . "' is not supported in current context.");
	}

	$this->entityTypeID = $entityTypeID;
}