ILIAS  release_8 Revision v8.22
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\GlobalScreen\Client\Client Class Reference
+ Collaboration diagram for ILIAS\GlobalScreen\Client\Client:

Public Member Functions

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

Private Attributes

ClientSettings $settings
 

Detailed Description

Definition at line 28 of file Client.php.

Constructor & Destructor Documentation

◆ __construct()

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

Client constructor.

Parameters
ClientSettings$settings

Definition at line 36 of file Client.php.

References ILIAS\GlobalScreen\Client\Client\$settings, and ILIAS\Repository\settings().

37  {
38  $this->settings = $settings;
39  }
+ Here is the call graph for this function:

Member Function Documentation

◆ init()

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

Definition at line 41 of file Client.php.

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

41  : void
42  {
43  $content->addJs("./src/GlobalScreen/Client/dist/GS.js", true, 1);
44  $init_script = "il.GS.Client.init('" . json_encode($this->settings) . "');";
45  $content->addOnloadCode($init_script, 1);
46  }
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ClientSettings ILIAS\GlobalScreen\Client\Client::$settings
private

Definition at line 30 of file Client.php.

Referenced by ILIAS\GlobalScreen\Client\Client\__construct().


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