19 $this->
load($this->groupId);
22 $notifyNames = Notification::getEventNames();
24 foreach ($this->settings as $moduleId => $moduleConfig)
28 'label' => $notifyNames[$moduleId][
'NAME'],
33 foreach ($moduleConfig[
'NOTIFY'] as $eventName => $eventConfig)
37 'label' => $eventConfig[
'NAME'],
38 'site' => $eventConfig[
'SITE'],
39 'mail' => $eventConfig[
'MAIL'],
40 'push' => $eventConfig[
'PUSH'],
45 foreach ($eventConfig[
'DISABLED'] as $disableType => $value)
47 if ($disableType ===
'XMPP')
53 $disabled[] = mb_strtolower($disableType);
56 $notify[
'disabled'] = $disabled;
60 $newModuleConfig[
'notices'] = $notices;
61 $result[] = $newModuleConfig;
102 $this->settings = Notification::getSimpleNotifySettings($simpleSchema);
106 $this->settings = Notification::getDefaultSettings();
108 Notification::setSettings($this->groupId, $this->settings);