SettingsManager::getSettingsList

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. SettingsManager
  4. getSettingsList
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/messagesender/settingsmanager.php
  • Класс: Bitrix\Crm\MessageSender\SettingsManager
  • Вызов: SettingsManager::getSettingsList
static function getSettingsList(): array
{
	$result = [
		self::SENDER_AUTO_SELECTION_SETTING_VALUE => Loc::getMessage('CRM_INTEGRATION_MESSAGE_SENDER_AUTO_VALUE'),
	];

	$senders = SenderRepository::getPrioritizedList();
	foreach ($senders as $sender)
	{
		$senderCode = $sender::getSenderCode();

		$result[$senderCode] = Loc::getMessage(
			sprintf(
				'CRM_INTEGRATION_MESSAGE_SENDER_%s_VALUE',
				mb_strtoupper($senderCode)
			)
		);
	}

	return $result;
}

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