ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1 <?php
2 
20 
28 {
29  protected ilLanguage $lng;
30 
31 
32  public function __construct()
33  {
34  global $DIC;
35 
36  $this->lng = $DIC->language();
37  }
38 
39  public function getId(): string
40  {
41  return "exc_feedback_notification";
42  }
43 
44  public function getTitle(): string
45  {
46  $lng = $this->lng;
47 
48  $lng->loadLanguageModule("exc");
49  return $lng->txt("exc_global_feedback_file_cron");
50  }
51 
52  public function getDescription(): string
53  {
54  $lng = $this->lng;
55 
56  $lng->loadLanguageModule("exc");
57  return $lng->txt("exc_global_feedback_file_cron_info");
58  }
59 
61  {
62  return CronJobScheduleType::SCHEDULE_TYPE_DAILY;
63  }
64 
65  public function getDefaultScheduleValue(): ?int
66  {
67  return null;
68  }
69 
70  public function hasAutoActivation(): bool
71  {
72  return true;
73  }
74 
75  public function hasFlexibleSchedule(): bool
76  {
77  return false;
78  }
79 
83  public function run(): ilCronJobResult
84  {
86 
87  $count = 0;
88 
91  $count++;
92  }
93  }
94 
95  if ($count !== 0) {
97  }
98 
99  $result = new ilCronJobResult();
100  $result->setStatus($status);
101 
102  return $result;
103  }
104 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
static getPendingFeedbackNotifications()
loadLanguageModule(string $a_module)
Load language module.
Cron for exercise feedback notification.
final const STATUS_NO_ACTION
global $DIC
Definition: shib_login.php:25
static sendFeedbackNotifications(int $a_ass_id, int $a_user_id=null)