- Модуль: 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;
}