ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Client.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
29 class Client
30 {
35  public function __construct(private ClientSettings $settings)
36  {
37  }
38 
39  public function init(MetaContent $content): void
40  {
41  $content->addJs("assets/js/GS.js", true, 1);
42  $init_script = "il.GS.Client.init('" . json_encode($this->settings) . "');";
43  $content->addOnloadCode($init_script, 1);
44  }
45 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
init(MetaContent $content)
Definition: Client.php:39
__construct(private ClientSettings $settings)
Client constructor.
Definition: Client.php:35