File tree Expand file tree Collapse file tree
components/ILIAS/Exercise Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,5 +42,15 @@ public function init(
4242 new Component \Resource \ComponentJS ($ this , "ilExcPresentation.js " );
4343 $ contribute [Component \Resource \PublicAsset::class] = fn () =>
4444 new Component \Resource \ComponentJS ($ this , "ilExcPeerReview.js " );
45+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
46+ new \ilExcCronFeedbackNotification (
47+ 'components \\' . self ::class,
48+ $ use [\ILIAS \Language \Language::class]
49+ );
50+ $ contribute [\ILIAS \Cron \CronJob::class] = static fn () =>
51+ new \ilExcCronReminders (
52+ 'components \\' . self ::class,
53+ $ use [\ILIAS \Language \Language::class]
54+ );
4555 }
4656}
Original file line number Diff line number Diff line change 2626 */
2727class ilExcCronFeedbackNotification extends ilCronJob
2828{
29- protected ilLanguage $ lng ;
30-
31-
32- public function __construct ()
33- {
34- global $ DIC ;
35-
36- $ this ->lng = $ DIC ->language ();
37- }
38-
3929 public function getId (): string
4030 {
4131 return "exc_feedback_notification " ;
Original file line number Diff line number Diff line change 2626 */
2727class ilExcCronReminders extends ilCronJob
2828{
29- protected ilLanguage $ lng ;
30-
31- public function __construct ()
32- {
33- global $ DIC ;
34-
35- $ this ->lng = $ DIC ->language ();
36- }
37-
3829 public function getId (): string
3930 {
4031 return "exc_reminders " ;
Original file line number Diff line number Diff line change 2525 <parent id =" wfld" >wfld</parent >
2626 </object >
2727 </objects >
28- <crons >
29- <cron id =" exc_feedback_notification" class =" ilExcCronFeedbackNotification" />
30- <cron id =" exc_reminders" class =" ilExcCronReminders" />
31- </crons >
3228 <mailtemplates >
3329 <context id =" exc_context_submit_rmd" class =" ilExcMailTemplateSubmitReminderContext" />
3430 <context id =" exc_context_grade_rmd" class =" ilExcMailTemplateGradeReminderContext" />
You can’t perform that action at this time.
0 commit comments