/** * List reservations */ function logObject() { global $tpl; $this->tabs_gui->setTabActive('log'); include_once 'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php'; $table = new ilBookingReservationsTableGUI($this, 'log', $this->ref_id, $this->object->getId(), $this->object->getScheduleType() != ilObjBookingPool::TYPE_NO_SCHEDULE); $tpl->setContent($table->getHTML()); }
function logDetailsObject() { global $tpl, $ilAccess; $this->tabs_gui->clearTargets(); $this->tabs_gui->setBackTarget($this->lng->txt("back"), $this->ctrl->getLinkTarget($this, "log")); $show_all = $ilAccess->checkAccess('write', '', $this->object->getRefId()) || $this->object->hasPublicLog(); $filter = null; if ($_GET["object_id"]) { $filter["object"] = (int) $_GET["object_id"]; } include_once 'Modules/BookingManager/classes/class.ilBookingReservationsTableGUI.php'; $table = new ilBookingReservationsTableGUI($this, 'log', $this->ref_id, $this->object->getId(), $show_all, $this->object->getScheduleType() != ilObjBookingPool::TYPE_NO_SCHEDULE, $filter, $_GET["reservation_id"]); $tpl->setContent($table->getHTML()); }