ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Client.php
Go to the documentation of this file.
1<?php
2
4
6
12class Client
13{
14
18 private $settings;
19
20
27 {
28 $this->settings = $settings;
29 }
30
31
35 public function init(MetaContent $content)
36 {
37 $content->addJs("./src/GlobalScreen/Client/dist/GS.js", true, 1);
38 $init_script = "il.GS.Client.init('" . json_encode($this->settings) . "');";
39 $content->addOnloadCode($init_script, 1);
40 }
41
42
46 public function __toString()
47 {
48 return "LOREM";
49 }
50}
An exception for terminatinating execution or to throw for unit testing.
__construct(ClientSettings $settings)
Client constructor.
Definition: Client.php:26
init(MetaContent $content)
Definition: Client.php:35
addJs(string $path, bool $add_version_number=false, int $batch=2)
Definition: MetaContent.php:96
Entry Point for Async calls from the Notification Center.
Definition: gs_content.php:1
settings()
Definition: settings.php:2