24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
53 $this->
setRowTemplate(
'tpl.calendar_shared_list_row.html',
'Services/Calendar');
57 $this->
addColumn($this->lng->txt(
'type'),
'type',
'1px');
58 $this->
addColumn($this->lng->txt(
'title'),
'title',
'80%');
59 $this->
addColumn($this->lng->txt(
'cal_shared_access_table_col'),
'access',
'20%');
61 $this->
addMultiCommand(
'shareDeassign', $this->lng->txt(
'cal_unshare_cal'));
75 $this->calendar_id = $a_calendar_id;
86 $this->tpl->setVariable(
'VAL_ID', $a_set[
'obj_id']);
87 $this->tpl->setVariable(
'NAME', $a_set[
'title']);
89 if (strlen($a_set[
'description'])) {
90 $this->tpl->setVariable(
'DESCRIPTION', $a_set[
'description']);
94 $this->tpl->setVariable(
'ALT_IMG', $this->lng->txt(
'obj_' . $a_set[
'type']));
96 if ($a_set[
'writable']) {
97 $this->tpl->setVariable(
'CAL_ACCESS', $this->lng->txt(
'cal_shared_access_read_write'));
99 $this->tpl->setVariable(
'CAL_ACCESS', $this->lng->txt(
'cal_shared_access_read_only'));
114 foreach ($this->shared_obj->getShared() as $item) {
115 switch ($item[
'obj_type']) {
117 $data[
'type'] =
'usr';
121 $data[
'description'] =
'';
126 $data[
'type'] =
'role';
131 $data[
'obj_id'] = $item[
'obj_id'];
132 $data[
'create_date'] = $item[
'create_date'];
133 $data[
'writable'] = $item[
'writable'];
137 $this->
setData($items ? $items : array());
static _lookupName($a_user_id)
lookup user name
static _lookupTitle($a_id)
lookup object title
Handles shared calendars.
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.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static _lookupDescription($a_id)
lookup object description
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.
setCalendarId($a_calendar_id)
set ids
__construct($parent_obj, $parent_cmd)
Constructor.