11<?php
22
3- declare (strict_types=1 );
4-
53/**
64 * This file is part of ILIAS, a powerful learning management system
75 * published by ILIAS open source e-Learning e.V.
1614 * https://www.ilias.de
1715 * https://github.com/ILIAS-eLearning
1816 *
19- ********************************************************************
20- */
17+ *********************************************************************/
18+
19+ declare (strict_types=1 );
2120
2221use ILIAS \Skill \Service \SkillTreeService ;
2322use ILIAS \Cron \Schedule \CronJobScheduleType ;
2928 */
3029class ilSkillNotifications extends ilCronJob
3130{
32- protected ilLanguage $ lng ;
3331 protected ilObjUser $ user ;
3432 protected ilIniFile $ client_ini ;
3533 protected ilTree $ tree ;
3634 protected SkillTreeService $ tree_service ;
3735
38- public function __construct ()
36+ public function init (): void
3937 {
38+ $ this ->lng ->loadLanguageModule ("skll " );
39+
4040 global $ DIC ;
4141
42- $ this ->lng = $ DIC ->language ();
4342 if (isset ($ DIC ["ilUser " ])) {
4443 $ this ->user = $ DIC ->user ();
4544 }
@@ -59,16 +58,12 @@ public function getId(): string
5958
6059 public function getTitle (): string
6160 {
62- $ lng = $ this ->lng ;
63- $ lng ->loadLanguageModule ("skll " );
64- return $ lng ->txt ("skll_skill_notification " );
61+ return $ this ->lng ->txt ("skll_skill_notification " );
6562 }
6663
6764 public function getDescription (): string
6865 {
69- $ lng = $ this ->lng ;
70- $ lng ->loadLanguageModule ("skll " );
71- return $ lng ->txt ("skll_skill_notification_desc " );
66+ return $ this ->lng ->txt ("skll_skill_notification_desc " );
7267 }
7368
7469 public function getDefaultScheduleType (): CronJobScheduleType
0 commit comments