ILIAS  release_8 Revision v8.24
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1<?php
2
26{
27 protected ilLanguage $lng;
28
29
30 public function __construct()
31 {
32 global $DIC;
33
34 $this->lng = $DIC->language();
35 }
36
37 public function getId(): string
38 {
39 return "exc_feedback_notification";
40 }
41
42 public function getTitle(): string
43 {
45
47 return $lng->txt("exc_global_feedback_file_cron");
48 }
49
50 public function getDescription(): string
51 {
53
55 return $lng->txt("exc_global_feedback_file_cron_info");
56 }
57
58 public function getDefaultScheduleType(): int
59 {
61 }
62
63 public function getDefaultScheduleValue(): ?int
64 {
65 return null;
66 }
67
68 public function hasAutoActivation(): bool
69 {
70 return true;
71 }
72
73 public function hasFlexibleSchedule(): bool
74 {
75 return false;
76 }
77
81 public function run(): ilCronJobResult
82 {
84
85 $count = 0;
86
89 $count++;
90 }
91 }
92
93 if ($count !== 0) {
95 }
96
97 $result = new ilCronJobResult();
98 $result->setStatus($status);
99
100 return $result;
101 }
102}
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
static sendFeedbackNotifications(int $a_ass_id, int $a_user_id=null)
static getPendingFeedbackNotifications()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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: feed.php:28