19 declare(strict_types=1);
44 $this->
tabs = $DIC[
'ilTabs'];
45 $this->
lng = $DIC->language();
46 $this->
lng->loadLanguageModule(
'mme');
47 $this->
ctrl = $DIC[
'ilCtrl'];
48 $this->rbacsystem = $DIC[
'rbacsystem'];
49 $this->
help = $DIC->help();
54 ?
string $subtab =
null,
55 bool $backtab =
false,
56 ?
string $calling_class =
"" 58 $this->
tabs->clearTargets();
61 $this->
help->setScreenIdComponent(
'mme');
63 $this->
help->setScreenId($tab);
65 if ($subtab !==
null) {
66 $this->
help->setSubScreenId($subtab);
69 if ($this->rbacsystem->checkAccess(
'visible,read', $this->ref_id)) {
76 $this->
tabs->addSubTab(
81 $this->
tabs->addSubTab(
86 $this->
tabs->activateSubTab($subtab);
88 if ($subtab ===
null) {
91 $this->
tabs->activateSubTab($subtab);
93 if ($this->rbacsystem->checkAccess(
'edit_permission', $this->ref_id)) {
96 $this->
lng->txt(
'perm_settings'),
97 $this->
ctrl->getLinkTargetByClass([ilObjMainMenuGUI::class, ilPermissionGUI::class],
'perm')
101 $this->
tabs->clearTargets();
102 if ($calling_class == ilMMSubItemGUI::class) {
103 $this->
tabs->setBackTarget($this->
lng->txt(
'tab_back'), $this->
ctrl->getLinkTargetByClass(ilMMSubItemGUI::class, $subtab));
105 $this->
tabs->setBackTarget($this->
lng->txt(
'tab_back'), $this->
ctrl->getLinkTargetByClass(ilObjMainMenuGUI::class, $subtab));
108 $this->
tabs->activateTab($tab);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(private int $ref_id)
ilMMTabHandling constructor.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
initTabs(?string $tab, ?string $subtab=null, bool $backtab=false, ?string $calling_class="")