3 require_once
'Services/Table/classes/class.ilTable2GUI.php';
17 $lng->loadLanguageModule(
'notification');
23 parent::__construct($a_ref,
$title);
24 $this->
setTitle($lng->txt(
'notification_options'));
26 $this->
setId(
'notifications_settings');
28 $this->
addColumn($lng->txt(
'notification_target'),
'',
'');
31 $this->
addColumn($lng->txt(
'notc_' . $channel[
'title']),
'',
'20%',
false, ($channel[
'config_type'] ==
'set_by_user' &&
false ?
'optionSetByUser' :
''));
34 $this->
setRowTemplate(
'tpl.type_line.html',
'Services/Notifications');
48 $this->tpl->setVariable(
'NOTIFICATION_TARGET', $lng->txt(
'nott_' . $type[
'title']));
50 foreach ($this->channels as $channeltype => $channel) {
51 if (array_key_exists($type[
'name'], $this->userdata) && in_array($channeltype, $this->userdata[$type[
'name']]))
52 $this->tpl->touchBlock (
'notification_cell_checked');
55 $this->tpl->touchBlock (
'notification_cell_disabled');
58 $this->tpl->setCurrentBlock(
'notification_cell');
60 if ($this->adminMode && $channel[
'config_type'] ==
'set_by_user' && $type[
'config_type'] ==
'set_by_user')
61 $this->tpl->setVariable(
'NOTIFICATION_SET_BY_USER_CELL',
'optionSetByUser');
63 $this->tpl->setVariable(
'CHANNEL', $channeltype);
64 $this->tpl->setVariable(
'TYPE', $type[
'name']);
66 $this->tpl->parseCurrentBlock();
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
__construct($a_ref, $title, $channels, $userdata, $adminMode=false)
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.