CCrmDocumentDeal::GetDocumentFields

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmDocumentDeal
  4. GetDocumentFields
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_document_deal.php
  • Класс: \CCrmDocumentDeal
  • Вызов: CCrmDocumentDeal::GetDocumentFields
public function GetDocumentFields($documentType)
{
	$arDocumentID = self::GetDocumentInfo($documentType . '_0');
	if (empty($arDocumentID))
	{
		throw new CBPArgumentNullException('documentId');
	}

	$arResult = self::getEntityFields($arDocumentID['TYPE']);

	self::appendReferenceFields(
		$arResult,
		\CCrmDocumentContact::getEntityFields(\CCrmOwnerType::ContactName),
		\CCrmOwnerType::Contact
	);

	self::appendReferenceFields(
		$arResult,
		\CCrmDocumentCompany::getEntityFields(\CCrmOwnerType::CompanyName),
		\CCrmOwnerType::Company
	);

	return $arResult;
}

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