ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
OnLoadCode.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
namespace
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
;
21
26
class
OnLoadCode
extends
AbstractMedia
27
{
31
private
$batch
;
32
38
public
function
__construct
(
string
$content
,
string
$version
,
int
$batch
= 2)
39
{
40
parent::__construct
($content, $version);
41
$this->batch =
$batch
;
42
}
43
47
public
function
getBatch
() : int
48
{
49
return
$this->batch
;
50
}
51
52
public
function
getContent
() : string
53
{
54
return
'try { '
. parent::getContent() .
' } catch (e) { console.log(e); }'
;
55
}
56
}
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\__construct
__construct(string $content, string $version, int $batch=2)
OnLoadCode constructor.
Definition:
OnLoadCode.php:38
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$content
$content
Definition:
AbstractMedia.php:31
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$version
$version
Definition:
AbstractMedia.php:36
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia
Class Js.
Definition:
AbstractMedia.php:26
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:40
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
Definition:
AbstractCollection.php:21
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\$batch
$batch
Definition:
OnLoadCode.php:31
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getBatch
getBatch()
Definition:
OnLoadCode.php:47
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode
Class OnLoadCode.
Definition:
OnLoadCode.php:26
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getContent
getContent()
Definition:
OnLoadCode.php:52
src
GlobalScreen
Scope
Layout
MetaContent
Media
OnLoadCode.php
Generated on Mon Sep 1 2025 21:01:45 for ILIAS by
1.8.13 (using
Doxyfile
)