- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/controller/status.php
- Класс: Bitrix\Crm\Controller\Status
- Вызов: Status::getItems
protected function getItems(string $statusTypeId): array { $statusList = []; foreach (StatusTable::loadStatusesByEntityId($statusTypeId) as $statusInfo) { $statusList[] = [ 'IS_FAKE' => 'N', 'IS_SYSTEM' => ($statusInfo['SYSTEM'] === 'Y') ? 'Y' : 'N', 'VALUE' => $statusInfo['NAME'], 'ID' => $statusInfo['STATUS_ID'], 'XML_ID' => '', 'SORT' => $statusInfo['SORT'], ]; } return $statusList; }