CCrmBizProcHelper::getHowCheckAutomationTourGuideData

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmBizProcHelper
  4. getHowCheckAutomationTourGuideData
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_bizproc_helper.php
  • Класс: \CCrmBizProcHelper
  • Вызов: CCrmBizProcHelper::getHowCheckAutomationTourGuideData
static function getHowCheckAutomationTourGuideData(int $entityTypeId, int $categoryId, int $userId): ?array
{
	$userOption = \CUserOptions::GetOption('bizproc.automation.guide', 'crm_check_automation', $userId);
	$entityName = CCrmOwnerType::ResolveName($entityTypeId);
	$userOptionDocumentType = $userOption['document_type'] ?? null;
	if (
		empty($userOption)
		|| $userOptionDocumentType !== $entityName
		|| (int)$userOption['category_id'] !== $categoryId
	)
	{
		return null;
	}

	return $userOption;
}

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