19declare(strict_types=1);
42 $this->
ctrl = $DIC->ctrl();
43 $this->
lng = $DIC->language();
44 $this->tabs_gui =
$DIC->tabs();
48 $this->parent_obj_gui->getRefId(),
52 $this->
lng->loadLanguageModule(
"meta");
57 $next_class = $this->
ctrl->getNextClass($this);
58 $cmd = $this->
ctrl->getCmd();
62 if (!$this->access_service->hasCurrentUserReadAccess()) {
66 switch ($next_class) {
67 case strtolower(ilMDCopyrightConfigurationGUI::class):
68 $this->tabs_gui->activateSubTab(self::COPYRIGHT_CONFIG_TAB);
70 $this->
ctrl->forwardCommand($gui);
73 case strtolower(ilMDOERSettingsGUI::class):
74 $this->tabs_gui->activateSubTab(self::OER_SETTINGS_TAB);
76 $this->
ctrl->forwardCommand($gui);
79 case strtolower(ilMDVocabulariesGUI::class):
80 $this->tabs_gui->activateSubTab(self::VOCABULARIES_TAB);
82 $this->
ctrl->forwardCommand($gui);
85 case strtolower(ilMDPublishingSettingsGUI::class):
86 $this->tabs_gui->activateSubTab(self::PUBLISHING_SETTINGS_TAB);
88 $this->
ctrl->forwardCommand($gui);
92 $this->tabs_gui->activateSubTab(self::OER_SETTINGS_TAB);
93 $this->
ctrl->redirectByClass(
94 ilMDOERSettingsGUI::class,
103 if (!$this->access_service->hasCurrentUserReadAccess()) {
107 $this->tabs_gui->addSubTab(
108 self::OER_SETTINGS_TAB,
109 $this->
lng->txt(
'md_settings'),
110 $this->ctrl->getLinkTargetByClass(
111 ilMDOERSettingsGUI::class,
116 $this->tabs_gui->addSubTab(
117 self::PUBLISHING_SETTINGS_TAB,
118 $this->
lng->txt(
'md_publishing'),
119 $this->ctrl->getLinkTargetByClass(
120 ilMDPublishingSettingsGUI::class,
121 'showPublishingSettings'
125 $this->tabs_gui->addSubTab(
126 self::COPYRIGHT_CONFIG_TAB,
127 $this->
lng->txt(
'md_copyright_selection'),
128 $this->ctrl->getLinkTargetByClass(
129 ilMDCopyrightConfigurationGUI::class,
130 'showCopyrightSelection'
134 $this->tabs_gui->addSubTab(
135 self::VOCABULARIES_TAB,
136 $this->
lng->txt(
'md_vocabularies_config'),
137 $this->ctrl->getLinkTargetByClass(
138 ilMDVocabulariesGUI::class,
Class ilCtrl provides processing control methods.
@ilCtrl_Calls ilMDCopyrightConfigurationGUI: ilMDCopyrightUsageGUI, ilMDCopyrightImageUploadHandlerGU...
@ilCtrl_Calls ilMDPublishingSettingsGUI: ilPropertyFormGUI
@ilCtrl_Calls ilMDSettingsControllerGUI: ilMDCopyrightConfigurationGUI, ilMDOERSettingsGUI,...
const string VOCABULARIES_TAB
ilMDSettingsAccessService $access_service
const string OER_SETTINGS_TAB
const string PUBLISHING_SETTINGS_TAB
__construct(ilObjMDSettingsGUI $parent_obj_gui)
const string COPYRIGHT_CONFIG_TAB
ilObjMDSettingsGUI $parent_obj_gui
@ilCtrl_Calls ilMDVocabulariesGUI: ilMDVocabularyUploadHandlerGUI
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...