CAllCrmQuote::BuildEntityAttr

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmQuote
  4. BuildEntityAttr
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_quote.php
  • Класс: \CAllCrmQuote
  • Вызов: CAllCrmQuote::BuildEntityAttr
public function BuildEntityAttr($userID, $arAttr = array())
{
	$userID = (int)$userID;
	$arResult = array("U{$userID}");
	if(isset($arAttr['OPENED']) && $arAttr['OPENED'] == 'Y')
	{
		$arResult[] = 'O';
	}

	$statusID = isset($arAttr['STATUS_ID']) ? $arAttr['STATUS_ID'] : '';
	if($statusID !== '')
	{
		$arResult[] = "STATUS_ID{$statusID}";
	}

	$arUserAttr = Bitrix\Crm\Service\Container::getInstance()
		->getUserPermissions($userID)
		->getAttributesProvider()
		->getEntityAttributes()
	;

	return array_merge($arResult, $arUserAttr['INTRANET']);
}

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