ILIAS  release_7 Revision v7.30-3-g800a261c036
OnLoadCode.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
27{
31 private $batch;
32
38 public function __construct(string $content, string $version, int $batch = 2)
39 {
41 $this->batch = $batch;
42 }
43
47 public function getBatch() : int
48 {
49 return $this->batch;
50 }
51
52 public function getContent() : string
53 {
54 return 'try { ' . parent::getContent() . ' } catch (e) { console.log(e); }';
55 }
56}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $content, string $version, int $batch=2)
OnLoadCode constructor.
Definition: OnLoadCode.php:38
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc