3require_once 
'Services/Table/classes/class.ilTable2GUI.php';
 
   30        $this->language->loadLanguageModule(
'notification');
 
   36        parent::__construct($a_ref, 
$title);
 
   37        $this->
setTitle($this->language->txt(
'notification_options'));
 
   39        $this->
setId(
'notifications_settings');
 
   41        $this->
addColumn($this->language->txt(
'notification_target'), 
'', 
'');
 
   46                    'notc_' . $channel[
'title']
 
   51                ($channel[
'config_type'] == 
'set_by_user' && 
false ? 
'optionSetByUser' : 
'')
 
   55        $this->
setRowTemplate(
'tpl.type_line.html', 
'Services/Notifications');
 
   71        $this->tpl->setVariable(
'NOTIFICATION_TARGET', $this->language->txt(
'nott_' . 
$type[
'title']));
 
   73        foreach ($this->channels as $channeltype => $channel) {
 
   74            if (array_key_exists(
$type[
'name'], $this->userdata) && in_array($channeltype, $this->userdata[
$type[
'name']])) {
 
   75                $this->tpl->touchBlock(
'notification_cell_checked');
 
   79                $this->tpl->touchBlock(
'notification_cell_disabled');
 
   82            $this->tpl->setCurrentBlock(
'notification_cell');
 
   84            if ($this->adminMode && $channel[
'config_type'] == 
'set_by_user' && 
$type[
'config_type'] == 
'set_by_user') {
 
   85                $this->tpl->setVariable(
'NOTIFICATION_SET_BY_USER_CELL', 
'optionSetByUser');
 
   88            $this->tpl->setVariable(
'CHANNEL', $channeltype);
 
   89            $this->tpl->setVariable(
'TYPE', 
$type[
'name']);
 
   91            $this->tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
__construct( $a_ref, $title, $channels, $userdata, $adminMode=false, \ilLanguage $language=null)
fillRow($type)
Standard Version of Fill Row.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
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.