Main routing of the system styles.
97 $next_class = $this->
ctrl->getNextClass($this);
99 $this->
help->setScreenIdComponent(
'sty');
100 $this->
help->setScreenId(
'system_styles');
105 if ($this->request_wrapper->query()->has(
'skin_id') && $this->request_wrapper->query()->has(
'style_id')) {
106 $skin_id = $this->request_wrapper->query()->retrieve(
'skin_id', $this->
refinery->kindlyTo()->string());
107 $style_id = $this->request_wrapper->query()->retrieve(
'style_id', $this->
refinery->kindlyTo()->string());
109 $skin_id = $config->getDefaultSkinId();
110 $style_id = $config->getDefaultStyleId();
113 $this->
ctrl->setParameterByClass(ilSystemStyleConfigGUI::class,
'skin_id', $skin_id);
114 $this->
ctrl->setParameterByClass(ilSystemStyleConfigGUI::class,
'style_id', $style_id);
115 $this->
ctrl->setParameterByClass(ilSystemStyleScssGUI::class,
'skin_id', $skin_id);
116 $this->
ctrl->setParameterByClass(ilSystemStyleScssGUI::class,
'style_id', $style_id);
117 $this->
ctrl->setParameterByClass(ilSystemStyleIconsGUI::class,
'skin_id', $skin_id);
118 $this->
ctrl->setParameterByClass(ilSystemStyleIconsGUI::class,
'style_id', $style_id);
119 $this->
ctrl->setParameterByClass(ilSystemStyleDocumentationGUI::class,
'skin_id', $skin_id);
120 $this->
ctrl->setParameterByClass(ilSystemStyleDocumentationGUI::class,
'style_id', $style_id);
123 switch ($next_class) {
124 case strtolower(ilSystemStyleConfigGUI::class):
125 $this->
help->setSubScreenId(
'settings');
137 $this->request_wrapper,
146 $this->
ctrl->forwardCommand($system_styles_settings);
148 case strtolower(ilSystemStyleScssGUI::class):
149 $this->
help->setSubScreenId(
'scss');
166 $this->
ctrl->forwardCommand($system_styles_scss);
168 case strtolower(ilSystemStyleIconsGUI::class):
169 $this->
help->setSubScreenId(
'icons');
179 $this->request_wrapper,
188 $this->
ctrl->forwardCommand($system_styles_icons);
190 case strtolower(ilSystemStyleDocumentationGUI::class):
191 $this->
help->setSubScreenId(
'documentation');
196 if ($this->request_wrapper->query()->has(
'node_id')) {
197 $node_id = $this->request_wrapper->query()->retrieve(
199 $this->
refinery->kindlyTo()->string()
203 $this->global_screen->tool()->context()->current()->addAdditionalData(
207 $this->tpl->setPermanentLink(
'stys', (
int) $this->ref_id, $goto_link);
208 $entries =
new Entries();
216 $documentation_gui->show($entries, $node_id);
218 case strtolower(ilSystemStyleOverviewGUI::class):
228 $this->message_stack->sendMessages();
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setUnderworldTitle(string $skin_id, string $style_id, bool $read_only=false)
Sets title correctly if one system style is opened.
ilSkinFactory $skin_factory
setUnderworldTabs(string $sking_id, string $active='', bool $read_only=false)
Sets the tab correctly if one system style is open (navigational underworld opened) ...
checkPermission(string $a_perm, bool $a_throw_exc=true)
Checks permission for system styles.
Generatates and reads Goto Links.
Renders the Overview of the Examples in the Administration.
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
executeDefaultCommand(ilSkinFactory $skin_factory, string $skin_id, string $style_id)