4 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
26 $this->ref_id = $a_ref_id;
31 $this->
addColumn($this->lng->txt(
"title"),
"title");
32 $this->
addColumn($this->lng->txt(
"book_is_used"));
33 $this->
addColumn($this->lng->txt(
"actions"));
36 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
37 $this->
setRowTemplate(
"tpl.booking_schedule_row.html",
"Modules/BookingManager");
39 $this->
getItems($ilObjDataCache->lookupObjId($this->ref_id));
49 include_once
'Modules/BookingManager/classes/class.ilBookingSchedule.php';
64 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
68 $this->tpl->setVariable(
"TXT_IS_USED", $lng->txt(
"yes"));
72 $this->tpl->setVariable(
"TXT_IS_USED", $lng->txt(
"no"));
75 $ilCtrl->setParameter($this->parent_obj,
'schedule_id', $a_set[
'booking_schedule_id']);
77 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
79 $alist->setId($a_set[
'booking_schedule_id']);
80 $alist->setListTitle($lng->txt(
"actions"));
82 if ($ilAccess->checkAccess(
'write',
'', $this->ref_id))
84 if(!$a_set[
"is_used"])
86 $alist->addItem($lng->txt(
'delete'),
'delete', $ilCtrl->getLinkTarget($this->parent_obj,
'confirmDelete'));
89 $alist->addItem($lng->txt(
'edit'),
'edit', $ilCtrl->getLinkTarget($this->parent_obj,
'edit'));
92 $this->tpl->setVariable(
"LAYER", $alist->getHTML());