36 $this->
ctrl = $DIC->ctrl();
37 $this->
lng = $DIC->language();
38 $this->
access = $DIC->access();
39 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
40 $ilCtrl = $DIC->ctrl();
41 $ilObjDataCache = $DIC[
"ilObjDataCache"];
43 $this->ref_id = $a_ref_id;
53 $this->
setFormAction($ilCtrl->getFormAction($a_parent_obj, $a_parent_cmd));
54 $this->
setRowTemplate(
"tpl.booking_schedule_row.html",
"Modules/BookingManager");
56 $this->
getItems($ilObjDataCache->lookupObjId($this->ref_id));
71 protected function fillRow(array $a_set): void
77 $this->tpl->setVariable(
"TXT_TITLE", $a_set[
"title"]);
79 if ($a_set[
"is_used"]) {
80 $this->tpl->setVariable(
"TXT_IS_USED",
$lng->
txt(
"yes"));
82 $this->tpl->setVariable(
"TXT_IS_USED",
$lng->
txt(
"no"));
85 $ilCtrl->
setParameter($this->parent_obj,
'schedule_id', $a_set[
'booking_schedule_id']);
88 $alist->setId($a_set[
'booking_schedule_id']);
89 $alist->setListTitle(
$lng->
txt(
"actions"));
91 if ($ilAccess->checkAccess(
'write',
'', $this->ref_id)) {
92 $alist->addItem(
$lng->
txt(
'edit'),
'edit', $ilCtrl->getLinkTarget($this->parent_obj,
'edit'));
94 if (!$a_set[
"is_used"]) {
95 $alist->addItem(
$lng->
txt(
'delete'),
'delete', $ilCtrl->getLinkTarget($this->parent_obj,
'confirmDelete'));
99 $this->tpl->setVariable(
"LAYER", $alist->getHTML());
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setFormAction(string $a_form_action, bool $a_multipart=false)
static getList(int $a_pool_id)
Get list of booking objects for given pool.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
getItems(int $a_pool_id)
Build summary item rows for given object and filter(s)
__construct(object $a_parent_obj, string $a_parent_cmd, int $a_ref_id)
__construct(Container $dic, ilPlugin $plugin)
ilObjectDataCache $obj_data_cache
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
setEnableHeader(bool $a_enableheader)
setMaxCount(int $a_max_count)
set max.