- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
- Класс: \CCrmViewHelper
- Вызов: CCrmViewHelper::RenderItemStatusSettings
static function RenderItemStatusSettings($entityTypeId, $categoryId): string
{
if (!isset($categoryId))
{
$categoryId = '0';
}
$result = [];
$factory = Container::getInstance()->getFactory($entityTypeId);
if ($categoryId === '0')
{
foreach ($factory->getCategories() as $category)
{
$categoryId = $category->getId();
$typeId = 'category_'.$categoryId;
$result[$typeId] = self::PrepareItemStatusesByCategoryId($entityTypeId, $categoryId);
}
}
else
{
$typeId = 'category_'.$categoryId;
$result[$typeId] = self::PrepareItemStatusesByCategoryId($entityTypeId, $categoryId);
}
$messages = [
'dialogTitle' => GetMessage('CRM_ITEM_STATUS_MANAGER_DLG_TTL'),
'failureTitle' => GetMessage('CRM_ITEM_STATUS_MANAGER_FAILURE_TTL'),
'selectorTitle' => GetMessage('CRM_ITEM_STATUS_MANAGER_SELECTOR_TTL'),
'checkErrorTitle' => GetMessage('CRM_ITEM_STATUS_MANAGER_CHECK_ERROR_TTL'),
'checkErrorHelp' => GetMessage('CRM_STAGE_MANAGER_CHECK_ERROR_HELP'),
'checkErrorHelpArticleCode' => '8233923',
];
return '';
}