CCrmInstantEditorHelper::prepareInnerConfig

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInstantEditorHelper
  4. prepareInnerConfig
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_component_helper.php
  • Класс: \CCrmInstantEditorHelper
  • Вызов: CCrmInstantEditorHelper::prepareInnerConfig
static function prepareInnerConfig(
	string $type,
	string $controller,
	string $statusType,
	array $fakeValues
): array
{
	static $allowMap = null;

	if ($allowMap === null)
	{
		$allowMap = array_fill_keys(
			CCrmStatus::getAllowedInnerConfigTypes(),
			CCrmStatus::CheckCreatePermission()
		);
	}

	$result = [];

	if (isset($allowMap[$statusType]) && $allowMap[$statusType])
	{
		$result = [
			'type' => $type,
			'controller' => $controller,
			'statusType' => $statusType,
			'itemsConfig' => self::prepareStatusItemsConfig($statusType, $fakeValues),
		];
	}

	return $result;
}

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