• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_component_helper.php
  • Класс: \CCrmInstantEditorHelper
  • Вызов: CCrmInstantEditorHelper::prepareStatusItemsConfig
static function prepareStatusItemsConfig(string $statusType, array $fakeValues): array
{
	$result = [
		'fakeValues' => $fakeValues,
		'systemValues' => [],
		'systemInitText' => [],
	];

	foreach (StatusTable::loadStatusesByEntityId($statusType) as $statusInfo)
	{
		if (isset($statusInfo['SYSTEM']) && $statusInfo['SYSTEM'] === 'Y')
		{
			$result['systemValues'][] = $statusInfo['STATUS_ID'];
			$result['systemInitText'][$statusInfo['STATUS_ID']] =
				is_string($statusInfo['NAME_INIT']) ? $statusInfo['NAME_INIT'] : ''
			;
		}
	}

	return $result;
}