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 ()
 @inheritDoc More...
 

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.

27 {
28 $this->settings = $settings;
29 }
settings()
Definition: settings.php:2

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

+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

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

@inheritDoc

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.

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

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

+ 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: