24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
51 $this->
setRowTemplate(
'tpl.calendar_shared_list_row.html',
'Services/Calendar');
52 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
55 $this->
addColumn($this->lng->txt(
'type'),
'type',
'1px');
56 $this->
addColumn($this->lng->txt(
'title'),
'title',
'20%');
58 $this->
addMultiCommand(
'shareDeassign',$this->lng->txt(
'cal_unshare_cal'));
72 $this->calendar_id = $a_calendar_id;
83 $this->tpl->setVariable(
'VAL_ID',$a_set[
'obj_id']);
84 $this->tpl->setVariable(
'NAME',$a_set[
'title']);
86 if(strlen($a_set[
'description']))
88 $this->tpl->setVariable(
'DESCRIPTION',$a_set[
'description']);
92 $this->tpl->setVariable(
'ALT_IMG',$this->lng->txt(
'obj_'.$a_set[
'type']));
107 foreach($this->shared_obj->getShared() as $item)
109 switch($item[
'obj_type'])
112 $data[
'type'] =
'usr';
115 $data[
'title'] = $name[
'lastname'].
', '.$name[
'firstname'];
116 $data[
'description'] =
'';
121 $data[
'type'] =
'role';
126 $data[
'obj_id'] = $item[
'obj_id'];
127 $data[
'create_date'] = $item[
'create_date'];
131 $this->
setData($items ? $items : array());