3 declare(strict_types=1);
44 bool $adminMode =
false,
47 if ($language === null) {
49 $language = $DIC->language();
53 $this->
language->loadLanguageModule(
'notification');
62 $this->
setId(
'notifications_settings');
66 foreach ($channels as
$key => $channel) {
69 'notc_' . $channel[
'title']
78 $this->
setRowTemplate(
'tpl.type_line.html',
'Services/Notifications');
92 protected function fillRow(array $a_set): void
94 $this->tpl->setVariable(
'NOTIFICATION_TARGET', $this->
language->txt(
'nott_' . $a_set[
'title']));
96 foreach ($this->channels as $channeltype => $channel) {
97 if (array_key_exists($a_set[
'name'], $this->userdata) && in_array(
99 $this->userdata[$a_set[
'name']],
102 $this->tpl->touchBlock(
'notification_cell_checked');
106 $this->tpl->touchBlock(
'notification_cell_disabled');
109 $this->tpl->setCurrentBlock(
'notification_cell');
113 isset($channel[
'config_type'], $a_set[
'config_type']) &&
114 $channel[
'config_type'] ===
'set_by_user' &&
115 $a_set[
'config_type'] ===
'set_by_user' 117 $this->tpl->setVariable(
'NOTIFICATION_SET_BY_USER_CELL',
'optionSetByUser');
120 $this->tpl->setVariable(
'CHANNEL', $channeltype);
121 $this->tpl->setVariable(
'TYPE', $a_set[
'name']);
123 $this->tpl->parseCurrentBlock();
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
__construct(?object $a_ref, string $title, array $channels, array $userdata, bool $adminMode=false, ilLanguage $language=null)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setEditable(bool $editable)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...