• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_field_multi.php
  • Класс: \CCrmFieldMulti
  • Вызов: CCrmFieldMulti::GetEntityComplexList
static function GetEntityComplexList($entityType = '', $bFullName = true)
{
	$arList = Array();
	static $arEntityType = array();

	$nameType = $bFullName? 'FULL': 'SHORT';
	if (empty($arEntityType[$nameType]))
		$arEntityType[$nameType] = self::GetEntityTypes();

	if ($entityType == '')
		foreach($arEntityType[$nameType] as $entity => $ar)
			foreach($ar as $type => $ar)
				$arList[$entity.'_'.$type] = $ar[$nameType];
	elseif (isset($arEntityType[$nameType][$entityType]))
		foreach($arEntityType[$nameType][$entityType] as $type => $ar)
			$arList[$entityType.'_'.$type] = $ar[$nameType];

	return $arList;
}