ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
OnLoadCode.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27{
28 public function __construct(string $content, string $version, private int $batch = 2)
29 {
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
Definition: plugin.php:24
__construct(string $content, string $version, private int $batch=2)
Definition: OnLoadCode.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc