3 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
14 $lng->loadLanguageModule(
'notification');
19 'set_by_user' => $lng->txt(
'set_by_user'),
20 'set_by_admin' => $lng->txt(
'set_by_admin'),
21 'disabled' => $lng->txt(
'disabled'),
24 foreach ($types as
$type) {
25 $select =
new ilSelectInputGUI($lng->txt(
'nott_' . $type[
'name']),
'notifications[' . $type[
'name'] .
']');
27 $select->setValue($type[
'config_type']);
28 $form->addItem($select);
41 'set_by_user' => $lng->txt(
'set_by_user'),
42 'set_by_admin' => $lng->txt(
'set_by_admin'),
43 'disabled' => $lng->txt(
'disabled'),
46 foreach ($types as
$type) {
47 $select =
new ilSelectInputGUI($lng->txt(
'notc_' . $type[
'name']),
'notifications[' . $type[
'name'] .
']');
49 $select->setValue($type[
'config_type']);
50 $form->addItem($select);
61 require_once
'Services/Notifications/classes/class.ilNotificationDatabaseHelper.php';
66 'set_by_user' => $lng->txt(
'set_by_user'),
67 'set_by_admin' => $lng->txt(
'set_by_admin'),
74 $store_values =
array();
75 foreach ($channels as $channel) {
76 $chb =
new ilCheckboxInputGUI($lng->txt(
'enable_' . $channel[
'name']),
'enable_' . $channel[
'name']);
78 $store_values[] =
'enable_' . $channel[
'name'];
80 $select =
new ilSelectInputGUI($lng->txt(
'config_type'),
'notifications[' . $channel[
'name'] .
']');
82 $select->setValue($channel[
'config_type']);
83 $chb->addSubItem($select);
88 $form->restored_values[
'notifications[' . $channel[
'name'] .
']'] = $channel[
'config_type'];
89 require_once $channel[
'include'];
93 $result = call_user_func(
array($channel[
'handler'],
'showSettings'), $chb);
95 $store_values = array_merge(
$result, $store_values);
105 $form->store_values = $store_values;
if(isset($_POST['submit'])) $form
Create styles array
The data for the language used.
static getAvailableChannels($config_types=array(), $includeDisabled=false)
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options