ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
Client.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
21 
23 
28 class Client
29 {
33  private $settings;
34 
40  {
41  $this->settings = $settings;
42  }
43 
44  public function init(MetaContent $content) : void
45  {
46  $content->addJs("./src/GlobalScreen/Client/dist/GS.js", true, 1);
47  $init_script = "il.GS.Client.init('" . json_encode($this->settings) . "');";
48  $content->addOnloadCode($init_script, 1);
49  }
50 }
addJs(string $path, bool $add_version_number=false, int $batch=2)
settings()
Definition: settings.php:2
__construct(ClientSettings $settings)
Client constructor.
Definition: Client.php:39
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: gs_content.php:1
init(MetaContent $content)
Definition: Client.php:44