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

	$nameType = $bFullName? 'FULL': 'SHORT';
	$arEntityType[$nameType] = array();
	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[$type] = $ar[$nameType];

	return $arList;
}