ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\Cron\Schedule\CronJobScheduleType
;
20
27
class
ilExcCronFeedbackNotification
extends
ilCronJob
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
60
public
function
getDefaultScheduleType
():
CronJobScheduleType
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
{
85
$status =
ilCronJobResult::STATUS_NO_ACTION
;
86
87
$count = 0;
88
89
foreach
(
ilExAssignment::getPendingFeedbackNotifications
() as
$ass_id
) {
90
if
(
ilExAssignment::sendFeedbackNotifications
($ass_id)) {
91
$count++;
92
}
93
}
94
95
if
($count !== 0) {
96
$status =
ilCronJobResult::STATUS_OK
;
97
}
98
99
$result =
new
ilCronJobResult
();
100
$result->setStatus($status);
101
102
return
$result;
103
}
104
}
ILIAS\Cron\Schedule\CronJobScheduleType
CronJobScheduleType
Definition:
CronJobScheduleType.php:23
ilCronJobResult\STATUS_OK
final const STATUS_OK
Definition:
class.ilCronJobResult.php:25
ilLanguage
$ass_id
int $ass_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:37
CronJobScheduleType
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilLanguage\txt
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...
Definition:
class.ilLanguage.php:171
ilExcCronFeedbackNotification\getDescription
getDescription()
Definition:
class.ilExcCronFeedbackNotification.php:52
ilExAssignment\getPendingFeedbackNotifications
static getPendingFeedbackNotifications()
Definition:
class.ilExAssignment.php:1421
ilCronJob
Definition:
class.ilCronJob.php:23
ilExcCronFeedbackNotification\__construct
__construct()
Definition:
class.ilExcCronFeedbackNotification.php:32
ilLanguage\loadLanguageModule
loadLanguageModule(string $a_module)
Load language module.
Definition:
class.ilLanguage.php:227
ilExcCronFeedbackNotification
Cron for exercise feedback notification.
Definition:
class.ilExcCronFeedbackNotification.php:27
ilExcCronFeedbackNotification\getTitle
getTitle()
Definition:
class.ilExcCronFeedbackNotification.php:44
ilExcCronFeedbackNotification\$lng
ilLanguage $lng
Definition:
class.ilExcCronFeedbackNotification.php:29
ilExcCronFeedbackNotification\getDefaultScheduleValue
getDefaultScheduleValue()
Definition:
class.ilExcCronFeedbackNotification.php:65
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:61
ilExcCronFeedbackNotification\run
run()
Definition:
class.ilExcCronFeedbackNotification.php:83
ilCronJobResult\STATUS_NO_ACTION
final const STATUS_NO_ACTION
Definition:
class.ilCronJobResult.php:24
$DIC
global $DIC
Definition:
shib_login.php:25
ilExcCronFeedbackNotification\getId
getId()
Definition:
class.ilExcCronFeedbackNotification.php:39
ilExcCronFeedbackNotification\getDefaultScheduleType
getDefaultScheduleType()
Definition:
class.ilExcCronFeedbackNotification.php:60
ilExcCronFeedbackNotification\hasFlexibleSchedule
hasFlexibleSchedule()
Definition:
class.ilExcCronFeedbackNotification.php:75
ilCronJobResult
Definition:
class.ilCronJobResult.php:21
ilExcCronFeedbackNotification\hasAutoActivation
hasAutoActivation()
Definition:
class.ilExcCronFeedbackNotification.php:70
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilExAssignment\sendFeedbackNotifications
static sendFeedbackNotifications(int $a_ass_id, int $a_user_id=null)
Definition:
class.ilExAssignment.php:1469
components
ILIAS
Exercise
classes
class.ilExcCronFeedbackNotification.php
Generated on Wed Sep 10 2025 15:15:30 for ILIAS by
1.8.13 (using
Doxyfile
)