ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilKSDocumentationGotoLink.php
Go to the documentation of this file.
1 <?php
18 declare(strict_types=1);
19 
24 {
25  public function generateGotoLink(string $node_id, string $skin_id, string $style_id): string
26  {
27  return '_' . $node_id . '_' . $skin_id . '_' . $style_id;
28  }
29 
30  public function redirectWithGotoLink(string $ref_id, array $params, ilCtrl $ctrl): void
31  {
32  $node_id = $params[2];
33  $skin_id = $params[3];
34  $style_id = $params[4];
35 
36  $ctrl->setParameterByClass('ilSystemStyleDocumentationGUI', 'skin_id', $skin_id);
37  $ctrl->setParameterByClass(
38  'ilSystemStyleDocumentationGUI',
39  'style_id',
40  $style_id
41  );
42  $ctrl->setParameterByClass('ilSystemStyleDocumentationGUI', 'node_id', $node_id);
43  $ctrl->setParameterByClass('ilSystemStyleDocumentationGUI', 'ref_id', $ref_id);
44 
45  $cmd_classes = [
46  'ilAdministrationGUI',
47  'ilObjStyleSettingsGUI',
48  'ilSystemStyleMainGUI',
49  'ilSystemStyleDocumentationGUI'
50  ];
51 
52  $ctrl->setTargetScript('ilias.php');
53  $ctrl->redirectByClass($cmd_classes, 'entries');
54  }
55 }
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:33
setParameterByClass(string $a_class, string $a_parameter, $a_value)
$ref_id
Definition: ltiauth.php:67
setTargetScript(string $a_target_script)