3declare(strict_types=1);
 
   33        $this->
setRowTemplate(
'tpl.calendar_shared_list_row.html', 
'Services/Calendar');
 
   37        $this->
addColumn($this->
lng->txt(
'type'), 
'type', 
'1px');
 
   38        $this->
addColumn($this->
lng->txt(
'title'), 
'title', 
'80%');
 
   39        $this->
addColumn($this->
lng->txt(
'cal_shared_access_table_col'), 
'access', 
'20%');
 
   51        $this->calendar_id = $a_calendar_id;
 
   57    protected function fillRow(array $a_set): void
 
   59        $this->tpl->setVariable(
'VAL_ID', $a_set[
'obj_id']);
 
   60        $this->tpl->setVariable(
'NAME', $a_set[
'title']);
 
   62        if (strlen($a_set[
'description'])) {
 
   63            $this->tpl->setVariable(
'DESCRIPTION', $a_set[
'description']);
 
   67        $this->tpl->setVariable(
'ALT_IMG', $this->
lng->txt(
'obj_' . $a_set[
'type']));
 
   69        if ($a_set[
'writable']) {
 
   70            $this->tpl->setVariable(
'CAL_ACCESS', $this->
lng->txt(
'cal_shared_access_read_write'));
 
   72            $this->tpl->setVariable(
'CAL_ACCESS', $this->
lng->txt(
'cal_shared_access_read_only'));
 
   80        foreach ($shared->getShared() as $item) {
 
   81            switch ($item[
'obj_type']) {
 
   83                    $data[
'type'] = 
'usr';
 
   87                    $data[
'description'] = 
'';
 
   91                    $data[
'type'] = 
'role';
 
   96            $data[
'obj_id'] = $item[
'obj_id'];
 
   97            $data[
'create_date'] = $item[
'create_date'];
 
   98            $data[
'writable'] = $item[
'writable'];
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setCalendarId(int $a_calendar_id)
set id
 
fillRow(array $a_set)
@inheritDoc
 
__construct(object $parent_obj, string $parent_cmd)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupName(int $a_user_id)
lookup user name
 
static _lookupTitle(int $obj_id)
 
static _lookupDescription(int $obj_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addMultiCommand(string $a_cmd, string $a_text)
 
setPrefix(string $a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
 
setFormAction(string $a_form_action, bool $a_multipart=false)
 
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)
 
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
 
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
 
setData(array $a_data)
Set table data.
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
 
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc