19 declare(strict_types=1);
45 $this->
lng->loadLanguageModule(
"meta");
50 $next_class = $this->
ctrl->getNextClass($this);
51 $cmd = $this->
ctrl->getCmd();
56 !$this->access_service->hasCurrentUserVisibleAccess() ||
57 !$this->access_service->hasCurrentUserReadAccess()
62 switch ($next_class) {
63 case strtolower(ilMDCopyrightSelectionGUI::class):
65 $ret = $this->
ctrl->forwardCommand($gui);
68 case strtolower(ilAdvancedMDSettingsGUI::class):
69 $this->tabs_gui->setTabActive(
'md_advanced');
74 $ret = $this->
ctrl->forwardCommand($adv_md);
77 case strtolower(ilPermissionGUI::class):
78 $this->tabs_gui->setTabActive(
'perm_settings');
81 $ret = $this->
ctrl->forwardCommand($perm_gui);
85 $this->
ctrl->redirectByClass(
86 ilMDCopyrightSelectionGUI::class,
106 $this->access_service->hasCurrentUserVisibleAccess() &&
107 $this->access_service->hasCurrentUserReadAccess()
109 $this->tabs_gui->addTab(
111 $this->
lng->txt(
'md_copyright'),
112 $this->
ctrl->getLinkTargetByClass(
113 ilMDCopyrightSelectionGUI::class,
114 'showCopyrightSettings' 118 $this->tabs_gui->addTab(
120 $this->
lng->txt(
'md_advanced'),
121 $this->
ctrl->getLinkTargetByClass(ilAdvancedMDSettingsGUI::class,
'')
125 if ($this->access_service->hasCurrentUserPermissionsAccess()) {
126 $this->tabs_gui->addTab(
128 $this->
lng->txt(
'perm_settings'),
129 $this->
ctrl->getLinkTargetByClass(ilPermissionGUI::class,
'perm')
136 if (!isset($this->md_settings)) {
__construct( $data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
ilMDSettings $md_settings
ilMDCopyrightSelectionGUI: ilMDCopyrightUsageGUI
prepareOutput(bool $show_sub_objects=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjectGUI Basic methods of all Output classes.
ilMDSettingsAccessService $access_service
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
const CONTEXT_ADMINISTRATION