ILIAS  release_7 Revision v7.30-3-g800a261c036
Client.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
23
28class 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}
An exception for terminatinating execution or to throw for unit testing.
__construct(ClientSettings $settings)
Client constructor.
Definition: Client.php:39
init(MetaContent $content)
Definition: Client.php:44
addJs(string $path, bool $add_version_number=false, int $batch=2)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: gs_content.php:1
settings()
Definition: settings.php:2