ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
OnLoadCode.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
;
22
26
class
OnLoadCode
extends
AbstractMedia
27
{
28
public
function
__construct
(
string
$content,
string
$version
,
private
int
$batch = 2)
29
{
30
parent::__construct
($content, $version);
31
}
32
33
34
public
function
getBatch
():
int
35
{
36
return
$this->batch;
37
}
38
39
#[\Override]
40
public
function
getContent
(): string
41
{
42
return
'try { '
.
parent::getContent
() .
' } catch (e) { console.log(e); }'
;
43
}
44
}
$version
$version
Definition:
plugin.php:24
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\AbstractMedia
Definition:
AbstractMedia.php:26
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\__construct
__construct(string $content, string $version, private int $batch=2)
Definition:
OnLoadCode.php:28
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media
Definition:
AbstractCollection.php:21
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getBatch
getBatch()
Definition:
OnLoadCode.php:34
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode
Definition:
OnLoadCode.php:26
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\UI\Implementation\Component\Input\ViewControl\getContent
getContent()
Definition:
GroupDecorator.php:87
ILIAS\GlobalScreen\Scope\Layout\MetaContent\Media\OnLoadCode\getContent
getContent()
Definition:
OnLoadCode.php:40
components
ILIAS
GlobalScreen
src
Scope
Layout
MetaContent
Media
OnLoadCode.php
Generated on Sun Aug 31 2025 23:03:03 for ILIAS by
1.8.13 (using
Doxyfile
)