ILIAS  release_8 Revision v8.24
OnLoadCode.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
21
27{
28 private int $batch;
29
35 public function __construct(string $content, string $version, int $batch = 2)
36 {
38 $this->batch = $batch;
39 }
40
44 public function getBatch(): int
45 {
46 return $this->batch;
47 }
48
49 public function getContent(): string
50 {
51 return 'try { ' . parent::getContent() . ' } catch (e) { console.log(e); }';
52 }
53}
__construct(string $content, string $version, int $batch=2)
OnLoadCode constructor.
Definition: OnLoadCode.php:35
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...