ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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)
 
 __toString ()
 

Private Attributes

 $settings
 

Detailed Description

Definition at line 12 of file Client.php.

Constructor & Destructor Documentation

◆ __construct()

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

Client constructor.

Parameters
ClientSettings$settings

Definition at line 26 of file Client.php.

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

27  {
28  $this->settings = $settings;
29  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ILIAS\GlobalScreen\Client\Client::__toString ( )

Definition at line 46 of file Client.php.

47  {
48  return "LOREM";
49  }

◆ init()

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

Definition at line 35 of file Client.php.

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

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  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $settings

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

Definition at line 18 of file Client.php.

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


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