ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
OnLoadCode.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
;
2
3
/******************************************************************************
4
* This file is part of ILIAS, a powerful learning management system.
5
* ILIAS is licensed with the GPL-3.0, you should have received a copy
6
* of said license along with the source code.
7
* If this is not the case or you just want to try ILIAS, you'll find
8
* us at:
9
* https://www.ilias.de
10
* https://github.com/ILIAS-eLearning
11
*****************************************************************************/
12
18
class
OnLoadCode
extends
AbstractMedia
19
{
20
24
private
$batch
= 2;
25
26
33
public
function
__construct
(
string
$content
,
string
$version
,
int
$batch
= 2)
34
{
35
parent::__construct
($content, $version);
36
$this->batch =
$batch
;
37
}
38
39
43
public
function
getBatch
() : int
44
{
45
return
$this->batch
;
46
}
47
48
public
function
getContent
() : string
49
{
50
return
'try { '
. parent::getContent() .
' } catch (e) { console.log(e); }'
;
51
}
52
}
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\__construct
__construct(string $content, string $version, int $batch=2)
OnLoadCode constructor.
Definition:
OnLoadCode.php:33
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$content
$content
Definition:
AbstractMedia.php:27
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia\$version
$version
Definition:
AbstractMedia.php:31
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia
Class Js.
Definition:
AbstractMedia.php:21
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
Definition:
AbstractCollection.php:1
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\$batch
$batch
Definition:
OnLoadCode.php:24
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getBatch
getBatch()
Definition:
OnLoadCode.php:43
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode
Class OnLoadCode.
Definition:
OnLoadCode.php:18
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getContent
getContent()
Definition:
OnLoadCode.php:48
src
GlobalScreen
Scope
Layout
MetaContent
Media
OnLoadCode.php
Generated on Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)