• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/entity/entitymanager.php
  • Класс: Bitrix\Crm\Entity\EntityManager
  • Вызов: EntityManager::selectExisted
static function selectExisted($entityTypeID, array $entityIDs)
{
	if(empty($entityIDs))
	{
		return [];
	}
	if ($entityTypeID === \CCrmOwnerType::Lead)
	{
		return Lead::selectExisted($entityIDs);
	}
	if ($entityTypeID === \CCrmOwnerType::Deal)
	{
		return Deal::selectExisted($entityIDs);
	}
	if ($entityTypeID === \CCrmOwnerType::Contact)
	{
		return Contact::selectExisted($entityIDs);
	}
	if ($entityTypeID === \CCrmOwnerType::Company)
	{
		return Company::selectExisted($entityIDs);
	}

	return $entityIDs;
}