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(
'ilsystemstylesettingsgui',
'skin_id', $skin_id);
114 $this->
ctrl->setParameterByClass(
'ilsystemstylesettingsgui',
'style_id', $style_id);
115 $this->
ctrl->setParameterByClass(
'ilsystemstylelessgui',
'skin_id', $skin_id);
116 $this->
ctrl->setParameterByClass(
'ilsystemstylelessgui',
'style_id', $style_id);
117 $this->
ctrl->setParameterByClass(
'ilsystemstyleiconsgui',
'skin_id', $skin_id);
118 $this->
ctrl->setParameterByClass(
'ilsystemstyleiconsgui',
'style_id', $style_id);
119 $this->
ctrl->setParameterByClass(
'ilsystemstyledocumentationgui',
'skin_id', $skin_id);
120 $this->
ctrl->setParameterByClass(
'ilsystemstyledocumentationgui',
'style_id', $style_id);
123 switch ($next_class) {
125 case 'ilsystemstylesettingsgui':
126 $this->
help->setSubScreenId(
'settings');
138 $this->request_wrapper,
147 $this->
ctrl->forwardCommand($system_styles_settings);
149 case 'ilsystemstylelessgui':
150 $this->
help->setSubScreenId(
'less');
167 $this->
ctrl->forwardCommand($system_styles_less);
169 case 'ilsystemstyleiconsgui':
170 $this->
help->setSubScreenId(
'icons');
180 $this->request_wrapper,
189 $this->
ctrl->forwardCommand($system_styles_icons);
191 case 'ilsystemstyledocumentationgui':
192 $this->
help->setSubScreenId(
'documentation');
197 if ($this->request_wrapper->query()->has(
'node_id')) {
198 $node_id = $this->request_wrapper->query()->retrieve(
200 $this->
refinery->kindlyTo()->string()
204 $this->global_screen->tool()->context()->current()->addAdditionalData(
208 $this->tpl->setPermanentLink(
'stys', (
int) $this->ref_id, $goto_link);
209 $entries =
new Entries();
217 $documentation_gui->show($entries, $node_id);
219 case 'ilsystemstyleoverviewgui':
229 $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)