Main routing of the system styles.
95 : void
96 {
97 $next_class = $this->
ctrl->getNextClass($this);
98
99 $this->
help->setScreenIdComponent(
'sty');
100 $this->
help->setScreenId(
'system_styles');
101
104
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());
108 } else {
109 $skin_id =
$config->getDefaultSkinId();
110 $style_id =
$config->getDefaultStyleId();
111 }
112
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);
121
122 try {
123 switch ($next_class) {
124
125 case 'ilsystemstylesettingsgui':
126 $this->
help->setSubScreenId(
'settings');
133 $this->tpl,
135 $this->ui_factory,
136 $this->renderer,
138 $this->request_wrapper,
142 $this->request,
143 $this->tree,
144 $skin_id,
145 $style_id
146 );
147 $this->
ctrl->forwardCommand($system_styles_settings);
148 break;
149 case 'ilsystemstylelessgui':
150 $this->
help->setSubScreenId(
'less');
157 $this->tpl,
158 $this->ui_factory,
159 $this->renderer,
160 $this->request,
164 $skin_id,
165 $style_id
166 );
167 $this->
ctrl->forwardCommand($system_styles_less);
168 break;
169 case 'ilsystemstyleiconsgui':
170 $this->
help->setSubScreenId(
'icons');
177 $this->tpl,
178 $this->ui_factory,
179 $this->renderer,
180 $this->request_wrapper,
186 $skin_id,
187 $style_id
188 );
189 $this->
ctrl->forwardCommand($system_styles_icons);
190 break;
191 case 'ilsystemstyledocumentationgui':
192 $this->
help->setSubScreenId(
'documentation');
196 $node_id = '';
197 if ($this->request_wrapper->query()->has('node_id')) {
198 $node_id = $this->request_wrapper->query()->retrieve(
199 'node_id',
200 $this->
refinery->kindlyTo()->string()
201 );
202 }
204 $this->global_screen->tool()->context()->current()->addAdditionalData(
206 true
207 );
208 $this->tpl->setPermanentLink(
'stys', (
int)
$this->ref_id, $goto_link);
209 $entries = new Entries();
212 $this->tpl,
214 $this->ui_factory,
215 $this->renderer
216 );
217 $documentation_gui->show($entries, $node_id);
218 break;
219 case 'ilsystemstyleoverviewgui':
220 default:
222 break;
223 }
228 ));
229 $this->message_stack->sendMessages();
231 }
232 }
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...
Renders the Overview of the Examples in the Administration.
@ilCtrl_Calls ilSystemStyleIconsGUI:
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)
checkPermission(string $a_perm, bool $a_throw_exc=true)
Checks permission for system styles.
setUnderworldTitle(string $skin_id, string $style_id, bool $read_only=false)
Sets title correctly if one system style is opened.