4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
5 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourAppointments.php';
32 $this->user_id = $a_user_id;
34 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourGroups.php';
41 $this->
addColumn($this->lng->txt(
'appointment'),
'start');
45 $this->
addColumn($this->lng->txt(
'cal_ch_grp_header'),
'group');
48 $this->
addColumn($this->lng->txt(
'title'),
'title');
49 $this->
addColumn($this->lng->txt(
'cal_ch_num_bookings'),
'num_bookings');
50 $this->
addColumn($this->lng->txt(
'cal_ch_bookings'),
'participants');
51 $this->
addColumn($this->lng->txt(
'cal_ch_target_object'),
'target');
54 $this->
setRowTemplate(
'tpl.ch_upcoming_row.html',
'Services/Calendar');
56 $this->
setTitle($this->lng->txt(
'cal_ch_ch'));
66 $this->
addMultiCommand(
'searchUsersForAppointments', $this->lng->txt(
'cal_ch_assign_participants'));
95 $this->tpl->setVariable(
'VAL_ID',
$row[
'id']);
96 $this->tpl->setVariable(
'START',
$row[
'start_p']);
97 $this->tpl->setVariable(
'TITLE',
$row[
'title']);
101 $this->tpl->setVariable(
'TITLE_GROUP',
$row[
'group']);
104 $this->tpl->setVariable(
'NUM_BOOKINGS',
$row[
'num_bookings']);
106 foreach((array)
$row[
'target_links'] as $link)
108 $this->tpl->setCurrentBlock(
'links');
109 $this->tpl->setVariable(
'TARGET', $link[
'title']);
110 $this->tpl->setVariable(
'URL_TARGET',$link[
'link']);
111 $this->tpl->parseCurrentBlock();
115 $this->tpl->setCurrentBlock(
'bookings');
119 $this->tpl->setVariable(
'URL_BOOKING', $ilCtrl->getLinkTarget($this->getParentObject(),
'showprofile'));
121 $this->tpl->setVariable(
'TXT_BOOKING', $name);
122 $this->tpl->parseCurrentBlock();
126 $this->tpl->setVariable(
'BOOKINGS',implode(
', ',
$row[
'bookings']));
128 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
130 $list->setId(
'act_cht_'.
$row[
'id']);
131 $list->setListTitle($this->lng->txt(
'actions'));
135 $this->lng->txt(
'edit'),
140 $this->lng->txt(
'cal_ch_assign_participants'),
142 $ilCtrl->getLinkTargetByClass(
'ilRepositorySearchGUI',
'')
145 $this->lng->txt(
'delete'),
149 $this->tpl->setVariable(
'ACTIONS',$list->getHTML());
159 global
$ilDB, $ilObjDataCache;
161 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
167 $data[$counter][
'id'] = $app->getEntryId();
168 $data[$counter][
'title'] = $app->getTitle();
169 $data[$counter][
'description'] = $app->getDescription();
176 $booked_user_ids =
ilUtil::_sortIds($booked_user_ids,
'usr_data',
'lastname',
'usr_id');
178 $data[$counter][
'participants'] =
'';
180 foreach($booked_user_ids as
$user_id)
185 $data[$counter][
'participants'] = $name[
'lastname'];
190 $data[$counter][
'bookings'] = $users;
191 $data[$counter][
'num_bookings'] = $booking->getNumberOfBookings();
193 $data[$counter][
'group'] =
'';
194 $group_id = $booking->getBookingGroup();
202 $obj_ids =
ilUtil::_sortIds($booking->getTargetObjIds(),
'object_data',
'title',
'obj_id');
203 foreach($obj_ids as $obj_id)
211 include_once
'./Services/Link/classes/class.ilLink.php';