ILIAS
release_8 Revision v8.24
◀ ilDoc Overview
Client.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Client
;
21
22
use
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent
;
23
28
class
Client
29
{
30
private
ClientSettings
$settings
;
31
36
public
function
__construct
(
ClientSettings
$settings
)
37
{
38
$this->
settings
=
$settings
;
39
}
40
41
public
function
init
(
MetaContent
$content): 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
}
47
}
ILIAS\GlobalScreen\Client\ClientSettings
Definition:
ClientSettings.php:30
ILIAS\GlobalScreen\Client\Client
Definition:
Client.php:29
ILIAS\GlobalScreen\Client\Client\$settings
ClientSettings $settings
Definition:
Client.php:30
ILIAS\GlobalScreen\Client\Client\__construct
__construct(ClientSettings $settings)
Client constructor.
Definition:
Client.php:36
ILIAS\GlobalScreen\Client\Client\init
init(MetaContent $content)
Definition:
Client.php:41
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent
Definition:
MetaContent.php:41
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent\addJs
addJs(string $path, bool $add_version_number=false, int $batch=2)
Definition:
MetaContent.php:80
ILIAS\GlobalScreen\Scope\Layout\MetaContent\MetaContent\addOnloadCode
addOnloadCode(string $content, int $batch=2)
Definition:
MetaContent.php:90
ILIAS\GlobalScreen\Client
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
gs_content.php:1
ILIAS\Repository\settings
settings()
Definition:
trait.GlobalDICDomainServices.php:91
src
GlobalScreen
Client
Client.php
Generated on Sun Nov 2 2025 22:01:58 for ILIAS by
1.9.4 (using
Doxyfile
)