• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/Configuration/Configuration.php
  • Класс: BitrixImConfigurationConfiguration
  • Вызов: Configuration::getUserPresetIds
static function getUserPresetIds(int $userId): ?array
{
	$ids =
		OptionUserTable::query()
		->setSelect(['NOTIFY_GROUP_ID', 'GENERAL_GROUP_ID'])
		->where('USER_ID', $userId)
		->fetch()
	;

	if ($ids === false)
	{
		return null;
	}

	return [
		'notify' => (int)$ids['NOTIFY_GROUP_ID'],
		'general' => (int)$ids['GENERAL_GROUP_ID']
	];
}