19 declare(strict_types=1);
39 $this->db->manipulateF(
40 'DELETE FROM settings WHERE module = %s AND keyword = %s',
42 [
'notifications',
'enable_mail']
44 $this->db->manipulateF(
45 'UPDATE settings SET keyword = %s WHERE module = %s AND keyword = %s',
47 [
'osd_interval',
'notifications',
'osd_polling_intervall']
49 $this->db->manipulateF(
50 'UPDATE settings SET module = %s, keyword = %s WHERE module = %s AND keyword = %s',
52 [
'notifications',
'play_sound',
'chatroom',
'play_invitation_sound']
54 $this->db->manipulateF(
55 'UPDATE usr_pref SET keyword = %s WHERE keyword = %s',
57 [
'play_sound',
'chat_play_invitation_sound']
63 $this->db->manipulateF(
64 'DELETE FROM notification_usercfg WHERE module = %s',
68 ilNotificationSetupHelper::registerType(
70 'buddysystem_request',
71 'buddysystem_request',
72 'buddysystem_request_desc',
80 ilNotificationSetupHelper::registerType(
89 'notification_usercfg',
96 $this->db->manipulateF(
97 'UPDATE notification_osd SET type = %s WHERE type = %s AND serialized LIKE %s',
99 [
'who_is_online',
'osd_main',
'%icon_usr.svg%']
105 ilNotificationSetupHelper::registerType(
109 'badge_received_desc',
114 'notification_usercfg',
121 $this->db->manipulateF(
122 'UPDATE notification_osd SET type = %s WHERE type = %s AND serialized LIKE %s',
124 [
'badge_received',
'osd_main',
'%icon_bdga.svg%']
134 $this->db->insert(
'settings', [
143 $this->db->addIndex(
'notification_osd', [
'usr_id',
'type',
'time_added'],
'i1');
148 $this->db->manipulateF(
149 "UPDATE settings SET value = CONCAT(value , '000') WHERE keyword = %s",
153 $this->db->manipulateF(
154 'UPDATE usr_pref SET keyword = %s WHERE keyword = %s',
156 [
'osd_play_sound',
'play_sound']
162 if (!$this->db->tableColumnExists(
'notification_osd',
'identification')) {
163 $this->db->addTableColumn(
'notification_osd',
'identification', [
171 $this->db->manipulate(
'TRUNCATE TABLE notification_osd');
176 $this->db->manipulateF(
177 'DELETE FROM settings WHERE module = %s AND keyword = %s',
179 [
'notifications',
'enable_mail']
181 $this->db->insert(
'settings', [
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepare(ilDBInterface $db)