- Модуль: calendar
- Путь к файлу: ~/bitrix/modules/calendar/lib/sync/managers/notificationmanager.php
- Класс: BitrixCalendarSyncManagersNotificationManager
- Вызов: NotificationManager::sendFinishedSyncNotification
static function sendFinishedSyncNotification(int $userId, string $vendorName): void
{
if (
MainLoader::includeModule("im")
&& $userId
&& !empty($vendorName)
)
{
CIMNotify::Add([
'TO_USER_ID' => $userId,
'FROM_USER_ID' => $userId,
'NOTIFY_TYPE' => IM_NOTIFY_SYSTEM,
'NOTIFY_MODULE' => 'calendar',
'NOTIFY_TAG' => 'CALENDAR|SYNC_FINISH|'.$userId,
'NOTIFY_SUB_TAG' => 'CALENDAR|SYNC_FINISH|'.$userId,
'NOTIFY_MESSAGE' => Loc::getMessage('FINISHED_SYNC_NOTIFICATION_'.mb_strtoupper($vendorName))
]);
}
}