11<?php
22
3- declare (strict_types=0 );
4-
5- use ILIAS \Cron \Schedule \CronJobScheduleType ;
6-
73/**
84 * This file is part of ILIAS, a powerful learning management system
95 * published by ILIAS open source e-Learning e.V.
2016 *
2117 *********************************************************************/
2218
19+ declare (strict_types=0 );
20+
21+ use ILIAS \Cron \Schedule \CronJobScheduleType ;
22+
2323class ilTimingsCronReminder extends ilCronJob
2424{
2525 private static array $ objects_information ;
@@ -29,21 +29,27 @@ class ilTimingsCronReminder extends ilCronJob
2929 private int $ now ;
3030
3131 protected ilLogger $ log ;
32- protected ilLanguage $ lng ;
3332 protected ilLanguage $ user_lang ;
3433 protected ilDBInterface $ db ;
3534 protected ilObjectDataCache $ obj_data_cache ;
3635
37- /**
38- * Constructor
39- */
40- 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+ $ this ->lng ->loadLanguageModule ('crs ' );
43+ if (!$ registration ) {
44+ $ this ->additionalConstruct ();
45+ }
46+ }
47+
48+ private function additionalConstruct ()
4149 {
4250 global $ DIC ;
4351
4452 $ this ->log = $ DIC ->logger ()->crs ();
45- $ this ->lng = $ DIC ->language ();
46- $ this ->lng ->loadLanguageModule ('crs ' );
4753 $ this ->db = $ DIC ->database ();
4854 $ this ->obj_data_cache = $ DIC ['ilObjDataCache ' ];
4955
0 commit comments