CCrmDocumentDeal::appendReferenceFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmDocumentDeal
  4. appendReferenceFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_document_deal.php
  • Класс: \CCrmDocumentDeal
  • Вызов: CCrmDocumentDeal::appendReferenceFields
static function appendReferenceFields(array &$thisFields, array $referenceFields, $entityTypeId)
{
	$fieldNamePrefix = \CCrmOwnerType::GetDescription($entityTypeId) . ': ';
	$fieldIdPrefix = \CCrmOwnerType::ResolveName($entityTypeId);

	foreach ($referenceFields as $id => $field)
	{
		if (mb_strpos($id, '.') !== false)
		{
			continue;
		}

		$field['Filterable'] = $field['Editable'] = false;
		$field['Name'] = $fieldNamePrefix.$field['Name'];
		$thisFields[$fieldIdPrefix.'.'.$id] = $field;
	}
}

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