|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +/** |
| 4 | + * This file is part of ILIAS, a powerful learning management system |
| 5 | + * published by ILIAS open source e-Learning e.V. |
| 6 | + * |
| 7 | + * ILIAS is licensed with the GPL-3.0, |
| 8 | + * see https://www.gnu.org/licenses/gpl-3.0.en.html |
| 9 | + * You should have received a copy of said license along with the |
| 10 | + * source code, too. |
| 11 | + * |
| 12 | + * If this is not the case or you just want to try ILIAS, you'll find |
| 13 | + * us at: |
| 14 | + * https://www.ilias.de |
| 15 | + * https://github.com/ILIAS-eLearning |
| 16 | + * |
| 17 | + *********************************************************************/ |
| 18 | + |
3 | 19 | declare(strict_types=1); |
4 | | -/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */ |
5 | 20 |
|
6 | 21 | use ILIAS\Cron\Schedule\CronJobScheduleType; |
7 | 22 |
|
|
16 | 31 | class ilLuceneIndexer extends ilCronJob |
17 | 32 | { |
18 | 33 | protected int $timeout = 60; |
19 | | - |
20 | | - protected ilLanguage $lng; |
21 | 34 | protected ilSetting $setting; |
22 | 35 |
|
23 | | - public function __construct() |
| 36 | + public function __construct( |
| 37 | + string $component, |
| 38 | + \ILIAS\Language\Language $lng, |
| 39 | + bool $registration = false |
| 40 | + ) { |
| 41 | + parent::__construct($component, $lng); |
| 42 | + if (!$registration) { |
| 43 | + $this->additionalConstruct(); |
| 44 | + } |
| 45 | + } |
| 46 | + |
| 47 | + private function additionalConstruct() |
24 | 48 | { |
25 | 49 | global $DIC; |
26 | | - |
27 | | - $this->lng = $DIC->language(); |
28 | 50 | $this->setting = $DIC->settings(); |
29 | 51 | } |
30 | 52 |
|
|
0 commit comments