4 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
5 include_once
'./Services/Calendar/classes/ConsultationHours/class.ilConsultationHourAppointments.php';
31 $this->user_id = $a_user_id;
36 $this->
addColumn($this->lng->txt(
'title'),
'title');
37 $this->
addColumn($this->lng->txt(
'cal_start'),
'start');
38 $this->
addColumn($this->lng->txt(
'cal_ch_num_bookings'),
'num_bookings');
39 $this->
addColumn($this->lng->txt(
'cal_ch_bookings'));
40 $this->
addColumn($this->lng->txt(
'cal_ch_target_object'));
43 $this->
setRowTemplate(
'tpl.ch_upcoming_row.html',
'Services/Calendar');
45 $this->
setTitle($this->lng->txt(
'cal_ch_ch'));
76 $this->tpl->setVariable(
'VAL_ID',
$row[
'id']);
77 $this->tpl->setVariable(
'TITLE',
$row[
'title']);
78 $this->tpl->setVariable(
'START',
$row[
'start_p']);
79 $this->tpl->setVariable(
'NUM_BOOKINGS',
$row[
'num_bookings']);
80 $this->tpl->setVariable(
'TARGET',
$row[
'target']);
84 $this->tpl->setCurrentBlock(
'bookings');
88 $this->tpl->setVariable(
'URL_BOOKING', $ilCtrl->getLinkTarget($this->getParentObject(),
'showprofile'));
90 $this->tpl->setVariable(
'TXT_BOOKING',
$name);
91 $this->tpl->parseCurrentBlock();
95 $this->tpl->setVariable(
'BOOKINGS',implode(
', ',
$row[
'bookings']));
104 global
$ilDB, $ilObjDataCache;
106 include_once
'Services/Booking/classes/class.ilBookingEntry.php';
112 $data[$counter][
'id'] = $app->getEntryId();
113 $data[$counter][
'title'] = $app->getTitle();
114 $data[$counter][
'description'] = $app->getDescription();
120 foreach($booking->getCurrentBookings($app->getEntryId()) as
$user_id)
124 $data[$counter][
'num_bookings'] =
sizeof($users);
125 $data[$counter][
'bookings'] = $users;
130 $data[$counter][
'target'] = $ilObjDataCache->lookupTitle($target);