CCrmEMail::ConvertCommsToBindings

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmEMail
  4. ConvertCommsToBindings
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_email.php
  • Класс: \CCrmEMail
  • Вызов: CCrmEMail::ConvertCommsToBindings
static function ConvertCommsToBindings(&$arCommData)
{
	$result = array();
	foreach($arCommData as &$arComm)
	{
		$entityTypeID = $arComm['ENTITY_TYPE_ID'];
		$entityID = $arComm['ENTITY_ID'];
		// Key to avoid dublicated entities
		$key = self::PrepareEntityKey($entityTypeID, $entityID);
		if(isset($result[$key]))
		{
			continue;
		}
		$result[$key] = self::CreateBinding($entityTypeID, $entityID);
	}
	unset($arComm);

	return $result;
}

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