ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
OnLoadCode.php
Go to the documentation of this file.
2
3/******************************************************************************
4 * This file is part of ILIAS, a powerful learning management system.
5 * ILIAS is licensed with the GPL-3.0, you should have received a copy
6 * of said license along with the source code.
7 * If this is not the case or you just want to try ILIAS, you'll find
8 * us at:
9 * https://www.ilias.de
10 * https://github.com/ILIAS-eLearning
11 *****************************************************************************/
12
19{
20
24 private $batch = 2;
25
26
33 public function __construct(string $content, string $version, int $batch = 2)
34 {
36 $this->batch = $batch;
37 }
38
39
43 public function getBatch() : int
44 {
45 return $this->batch;
46 }
47
48 public function getContent() : string
49 {
50 return 'try { ' . parent::getContent() . ' } catch (e) { console.log(e); }';
51 }
52}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $content, string $version, int $batch=2)
OnLoadCode constructor.
Definition: OnLoadCode.php:33
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc