ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\GlobalScreen\Client\Client Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\Client\Client:

Public Member Functions

 __construct (private ClientSettings $settings)
 Client constructor. More...
 
 init (MetaContent $content)
 

Detailed Description

Definition at line 29 of file Client.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\GlobalScreen\Client\Client::__construct ( private ClientSettings  $settings)

Client constructor.

Parameters
ClientSettings$settings

Definition at line 35 of file Client.php.

36 {
37 }

Member Function Documentation

◆ init()

ILIAS\GlobalScreen\Client\Client::init ( MetaContent  $content)

Definition at line 39 of file Client.php.

39 : 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 }
addJs(string $path, bool $add_version_number=false, int $batch=2)

References ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent\addJs(), ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent\addOnloadCode(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: