CCrmInstantEditorHelper::prepareStatusItemsConfig

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInstantEditorHelper
  4. prepareStatusItemsConfig
  • Модуль: 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;
}

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