2 include_once
'./Services/Calendar/interfaces/interface.ilCalendarAppointmentPresentation.php';
3 include_once
'./Services/Calendar/classes/AppointmentPresentation/class.ilAppointmentPresentationGUI.php';
21 $this->lng->loadLanguageModule(
"book");
24 $res_id = $a_app[
'event']->getContextId();
25 include_once(
"./Modules/BookingManager/classes/class.ilBookingReservation.php");
26 include_once(
"./Modules/BookingManager/classes/class.ilBookingObject.php");
36 if (count($refs) > 0) {
40 if ($b_obj->getDescription()) {
41 $this->
addInfoProperty($this->lng->txt(
"description"), $b_obj->getDescription());
53 if ($b_obj->getDescription() || $b_obj->getFile()) {
54 $this->
addInfoSection($this->lng->txt(
"book_booking_information"));
57 $ref_id = current($refs);
59 $this->ctrl->setParameterByClass(
"ilObjBookingPoolGUI",
"ref_id", $ref_id);
60 $this->ctrl->setParameterByClass(
"ilbookingobjectgui",
"object_id",
$res->getObjectId());
63 if ($b_obj->getFile()) {
64 $this->has_files =
true;
65 $link = $this->ctrl->getLinkTargetByClass(array(
"ilRepositoryGUI",
"ilObjBookingPoolGUI",
"ilbookingobjectgui"),
"deliverInfo");
67 $link = $this->ui->renderer()->render(
68 $this->ui->factory()->button()->shy($b_obj->getFile(), $link)
71 $this->
addInfoProperty($this->lng->txt(
"book_additional_info_file"), $link);
75 $array_info = array();
76 if ($b_obj->getPostText()) {
77 $array_info[] = $b_obj->getPostText();
79 if ($b_obj->getPostFile()) {
80 $this->has_files =
true;
82 $link = $this->ctrl->getLinkTargetByClass(array(
"ilRepositoryGUI",
"ilObjBookingPoolGUI",
"ilbookingobjectgui"),
"deliverPostFile");
84 $array_info[] = $this->ui->renderer()->render(
85 $this->ui->factory()->button()->shy($b_obj->getPostFile(), $link)
89 $this->
addInfoProperty($this->lng->txt(
"book_post_booking_information"), implode(
"<br>", $array_info));
93 $this->ctrl->setParameterByClass(
'ilcalendarappointmentgui',
'app_id', $a_app[
'event']->getEntryId());
95 $this->lng->txt(
"cal_ch_cancel_booking"),
96 $this->ctrl->getLinkTargetByClass(
'ilcalendarappointmentgui',
'cancelBooking')
99 if (count($refs) > 0) {
addInfoProperty($a_txt, $a_val)
Add info property.
getReadableRefIds($a_obj_id)
Get readable ref ids.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
addCalendarInfo($cat_info)
Add calendar info.
foreach($_POST as $key=> $value) $res
addMetaData($a_obj_type, $a_obj_id, $a_sub_obj_type=null, $a_sub_obj_id=null)
Add metadata.
addObjectLinks($obj_id, $a_appointment=null)
Add object link.
collectPropertiesAndActions()
addAction($a_txt, $a_link)
Add action.
addInfoSection($a_txt)
Add info section.