ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1<?php
2
22
30{
31 protected ilLanguage $lng;
32
33
34 public function __construct()
35 {
36 global $DIC;
37
38 $this->lng = $DIC->language();
39 }
40
41 public function getId(): string
42 {
43 return "exc_feedback_notification";
44 }
45
46 public function getTitle(): string
47 {
49
51 return $lng->txt("exc_global_feedback_file_cron");
52 }
53
54 public function getDescription(): string
55 {
57
59 return $lng->txt("exc_global_feedback_file_cron_info");
60 }
61
63 {
64 return JobScheduleType::DAILY;
65 }
66
67 public function getDefaultScheduleValue(): ?int
68 {
69 return null;
70 }
71
72 public function hasAutoActivation(): bool
73 {
74 return true;
75 }
76
77 public function hasFlexibleSchedule(): bool
78 {
79 return false;
80 }
81
85 public function run(): JobResult
86 {
87 $status = JobResult::STATUS_NO_ACTION;
88
89 $count = 0;
90
93 $count++;
94 }
95 }
96
97 if ($count !== 0) {
98 $status = JobResult::STATUS_OK;
99 }
100
101 $result = new JobResult();
102 $result->setStatus($status);
103
104 return $result;
105 }
106}
static getPendingFeedbackNotifications()
static sendFeedbackNotifications(int $a_ass_id, ?int $a_user_id=null)
Cron for exercise feedback notification.
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
language handling
loadLanguageModule(string $a_module)
Load language module.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
global $DIC
Definition: shib_login.php:26