ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
Client.php
Go to the documentation of this file.
1 <?php
2 
4 
6 
12 class 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 }
addJs(string $path, bool $add_version_number=false, int $batch=2)
Definition: MetaContent.php:96
settings()
Definition: settings.php:2
__construct(ClientSettings $settings)
Client constructor.
Definition: Client.php:26
Entry Point for Async calls from the Notification Center.
Definition: gs_content.php:1
init(MetaContent $content)
Definition: Client.php:35