ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
OnLoadCode.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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  public function getContent(): string
40  {
41  return 'try { ' . parent::getContent() . ' } catch (e) { console.log(e); }';
42  }
43 }
$version
Definition: plugin.php:25
__construct(string $content, string $version, private int $batch=2)
Definition: OnLoadCode.php:28
__construct(Container $dic, ilPlugin $plugin)