Main routing of the system styles.
94 : void
95 {
96 $next_class = $this->
ctrl->getNextClass($this);
97
98 $this->
help->setScreenIdComponent(
'sty');
99 $this->
help->setScreenId(
'system_styles');
100
103
104 if ($this->request_wrapper->query()->has('skin_id') && $this->request_wrapper->query()->has('style_id')) {
105 $skin_id = $this->request_wrapper->query()->retrieve(
'skin_id', $this->
refinery->kindlyTo()->string());
106 $style_id = $this->request_wrapper->query()->retrieve(
'style_id', $this->
refinery->kindlyTo()->string());
107 } else {
108 $skin_id = $config->getDefaultSkinId();
109 $style_id = $config->getDefaultStyleId();
110 }
111
112 $this->
ctrl->setParameterByClass(ilSystemStyleConfigGUI::class,
'skin_id', $skin_id);
113 $this->
ctrl->setParameterByClass(ilSystemStyleConfigGUI::class,
'style_id', $style_id);
114 $this->
ctrl->setParameterByClass(ilSystemStyleDocumentationGUI::class,
'skin_id', $skin_id);
115 $this->
ctrl->setParameterByClass(ilSystemStyleDocumentationGUI::class,
'style_id', $style_id);
116
117 try {
118 switch ($next_class) {
119 case strtolower(ilSystemStyleConfigGUI::class):
120 $this->
help->setSubScreenId(
'settings');
127 $this->tpl,
129 $this->ui_factory,
132 $this->request_wrapper,
136 $this->request,
137 $this->tree,
138 $skin_id,
139 $style_id
140 );
141 $this->
ctrl->forwardCommand($system_styles_settings);
142 break;
143 case strtolower(ilSystemStyleDocumentationGUI::class):
144 $this->
setTabs($skin_id, $style_id);
145 $this->
tabs->activateSubTab(
'documentation');
146 $this->
help->setSubScreenId(
'documentation');
148 $node_id = '';
149 if ($this->request_wrapper->query()->has('node_id')) {
150 $node_id = $this->request_wrapper->query()->retrieve(
151 'node_id',
152 $this->
refinery->kindlyTo()->string()
153 );
154 }
156 $this->global_screen->tool()->context()->current()->addAdditionalData(
158 true
159 );
160 $this->tpl->setPermanentLink(
'stys', (
int)
$this->ref_id, $goto_link);
161 $entries = new Entries();
162 $entries->addEntriesFromArray(require ilKitchenSinkDataCollectedObjective::PATH());
164 $this->tpl,
166 $this->ui_factory,
168 );
169 $documentation_gui->show($entries, $node_id);
170 break;
171 case strtolower(ilSystemStyleOverviewGUI::class):
172 default:
174 break;
175 }
180 ));
181 $this->message_stack->sendMessages();
183 }
184 }
Generatates and reads Goto Links.
Factory to create Skin classes holds an manages the basic data of a skin as provide by the template o...
ilSystemStyleConfig wraps all 'constants' to ensure the testability of all classes using those 'const...
Renders the Overview of the Examples in the Administration.
ilSkinFactory $skin_factory
executeDefaultCommand(ilSkinFactory $skin_factory, string $skin_id, string $style_id)
setUnderworldTabs(string $sking_id, string $active='', bool $read_only=false)
Sets the tab correctly if one system style is open (navigational underworld opened)
setUnderworldTitle(string $skin_id, string $style_id, string $active)
Sets title correctly if one system style is opened.
checkPermission(string $a_perm, bool $a_throw_exc=true)
Checks permission for system styles.
setTabs(string $skin_id, string $style_id, string $active='')