DuplicateIndexBuilder::getTypeScopeMap

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DuplicateIndexBuilder
  4. getTypeScopeMap
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/duplicateindexbuilder.php
  • Класс: Bitrix\Crm\Integrity\DuplicateIndexBuilder
  • Вызов: DuplicateIndexBuilder::getTypeScopeMap
static function getTypeScopeMap($entityTypeID)
{
	if (!\CCrmOwnerType::isDefined($entityTypeID))
		return array();

	if (self::$typeScopeMap === null)
	{
		self::$typeScopeMap = array();
	}

	if (!isset(self::$typeScopeMap[$entityTypeID]))
	{
		self::$typeScopeMap[$entityTypeID] = array();
		foreach (DuplicateManager::getDedupeTypeScopeMap($entityTypeID) as $typeID => $scopes)
			self::$typeScopeMap[$entityTypeID][$typeID] = array_fill_keys($scopes, true);
	}

	return self::$typeScopeMap[$entityTypeID];
}

Добавить комментарий