ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
OnLoadCode.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
21 
27 {
28  private int $batch;
29 
35  public function __construct(string $content, string $version, int $batch = 2)
36  {
37  parent::__construct($content, $version);
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...