ILIAS
Release_4_4_x_branch Revision 61816
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilExcCronFeedbackNotification.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once
"Services/Cron/classes/class.ilCronJob.php"
;
6
13
class
ilExcCronFeedbackNotification
extends
ilCronJob
14
{
15
public
function
getId
()
16
{
17
return
"exc_feedback_notification"
;
18
}
19
20
public
function
getTitle
()
21
{
22
global
$lng
;
23
24
$lng->loadLanguageModule(
"exc"
);
25
return
$lng->txt(
"exc_global_feedback_file_cron"
);
26
}
27
28
public
function
getDescription
()
29
{
30
global
$lng
;
31
32
$lng->loadLanguageModule(
"exc"
);
33
return
$lng->txt(
"exc_global_feedback_file_cron_info"
);
34
}
35
36
public
function
getDefaultScheduleType
()
37
{
38
return
self::SCHEDULE_TYPE_DAILY
;
39
}
40
41
public
function
getDefaultScheduleValue
()
42
{
43
return
;
44
}
45
46
public
function
hasAutoActivation
()
47
{
48
return
true
;
49
}
50
51
public
function
hasFlexibleSchedule
()
52
{
53
return
false
;
54
}
55
56
public
function
run
()
57
{
58
$status =
ilCronJobResult::STATUS_NO_ACTION
;
59
$message = array();
60
61
$count = 0;
62
63
include_once
"Modules/Exercise/classes/class.ilExAssignment.php"
;
64
foreach
(
ilExAssignment::getPendingFeedbackNotifications
() as $ass_id)
65
{
66
if
(
ilExAssignment::sendFeedbackNotifications
($ass_id))
67
{
68
$count++;
69
}
70
}
71
72
if
($count)
73
{
74
$status =
ilCronJobResult::STATUS_OK
;
75
}
76
77
$result
=
new
ilCronJobResult
();
78
$result
->setStatus($status);
79
80
return
$result
;
81
}
82
}
83
84
?>
Modules
Exercise
classes
class.ilExcCronFeedbackNotification.php
Generated on Wed Apr 27 2016 20:01:13 for ILIAS by
1.8.1.2 (using
Doxyfile
)