CCrmViewHelper::RenderListMultiField

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmViewHelper
  4. RenderListMultiField
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
  • Класс: \CCrmViewHelper
  • Вызов: CCrmViewHelper::RenderListMultiField
static function RenderListMultiField(&$arFields, $typeName, $prefix = '', $arEntityTypes = null, $arOptions = null)
{
	$typeName = mb_strtoupper(strval($typeName));
	$prefix = strval($prefix);

	if(!is_array($arEntityTypes))
	{
		$arEntityTypes = CCrmFieldMulti::GetEntityTypes();
	}

	$result = '';

	$arValueTypes = isset($arEntityTypes[$typeName]) ? $arEntityTypes[$typeName] : array();
	if(!empty($arValueTypes))
	{
		$values = self::PrepareListMultiFieldValues($arFields, $typeName, $arValueTypes);

		$result .= ($typeName === 'PHONE'
				? '
' : '
') .self::RenderListMultiFieldValues("{$prefix}{$typeName}", $values, $typeName, $arValueTypes, $arOptions) .'
'; } return $result; }

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