ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilPrgUpdateProgressCronJob.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Daniel Weise <daniel.weise@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
declare(strict_types=1);
6
7
class
ilPrgUpdateProgressCronJob
extends
ilCronJob
8
{
9
const
ID
=
'prg_update_progress'
;
10
14
protected
$user_progress_db
;
15
19
protected
$log
;
20
24
protected
$lng
;
25
26
public
function
__construct
()
27
{
28
global
$DIC
;
29
30
$this->user_progress_db =
ilStudyProgrammeDIC::dic
()[
'ilStudyProgrammeUserProgressDB'
];
31
$this->log = $DIC[
'ilLog'
];
32
$this->lng = $DIC[
'lng'
];
33
$this->lng->loadLanguageModule(
'prg'
);
34
}
35
36
public
function
getTitle
()
37
{
38
return
$this->lng->txt(
'prg_update_progress_title'
);
39
}
40
41
public
function
getDescription
()
42
{
43
return
$this->lng->txt(
'prg_update_progress_description'
);
44
}
45
46
public
function
getId
()
47
{
48
return
self::ID;
49
}
50
51
public
function
hasAutoActivation
()
52
{
53
return
true
;
54
}
55
56
public
function
hasFlexibleSchedule
()
57
{
58
return
true
;
59
}
60
61
public
function
getDefaultScheduleType
()
62
{
63
return
self::SCHEDULE_TYPE_IN_DAYS;
64
}
65
66
public
function
getDefaultScheduleValue
()
67
{
68
return
1;
69
}
70
71
public
function
run
()
72
{
73
$result
=
new
ilCronJobResult
();
74
foreach
($this->user_progress_db->getPassedDeadline() as $progress) {
75
if
($progress->getStatus() ===
ilStudyProgrammeProgress::STATUS_IN_PROGRESS
) {
76
$progress->markFailed($progress->getUserId());
77
}
78
}
79
$result
->setStatus(
ilCronJobResult::STATUS_OK
);
80
81
return
$result
;
82
}
83
}
$result
$result
Definition:
CleanUpTest.php:463
ilPrgUpdateProgressCronJob\$log
$log
Definition:
class.ilPrgUpdateProgressCronJob.php:19
ilPrgUpdateProgressCronJob\getDefaultScheduleType
getDefaultScheduleType()
Definition:
class.ilPrgUpdateProgressCronJob.php:61
ilCronJob
Cron job application base class.
Definition:
class.ilCronJob.php:11
ilPrgUpdateProgressCronJob\ID
const ID
Definition:
class.ilPrgUpdateProgressCronJob.php:9
ilPrgUpdateProgressCronJob\hasAutoActivation
hasAutoActivation()
Definition:
class.ilPrgUpdateProgressCronJob.php:51
ilPrgUpdateProgressCronJob\run
run()
Definition:
class.ilPrgUpdateProgressCronJob.php:71
ilPrgUpdateProgressCronJob\$user_progress_db
$user_progress_db
Definition:
class.ilPrgUpdateProgressCronJob.php:14
ilPrgUpdateProgressCronJob\$lng
$lng
Definition:
class.ilPrgUpdateProgressCronJob.php:24
ilPrgUpdateProgressCronJob\getDefaultScheduleValue
getDefaultScheduleValue()
Definition:
class.ilPrgUpdateProgressCronJob.php:66
ilPrgUpdateProgressCronJob\__construct
__construct()
Definition:
class.ilPrgUpdateProgressCronJob.php:26
ilStudyProgrammeDIC\dic
static dic()
Definition:
class.ilStudyProgrammeDIC.php:11
ilPrgUpdateProgressCronJob
Definition:
class.ilPrgUpdateProgressCronJob.php:7
ilPrgUpdateProgressCronJob\getDescription
getDescription()
Definition:
class.ilPrgUpdateProgressCronJob.php:41
ilCronJobResult\STATUS_OK
const STATUS_OK
Definition:
class.ilCronJobResult.php:15
$DIC
$DIC
Definition:
xapitoken.php:46
ilCronJobResult
Cron job result data container.
Definition:
class.ilCronJobResult.php:11
ilPrgUpdateProgressCronJob\getId
getId()
Definition:
class.ilPrgUpdateProgressCronJob.php:46
ilPrgUpdateProgressCronJob\hasFlexibleSchedule
hasFlexibleSchedule()
Definition:
class.ilPrgUpdateProgressCronJob.php:56
ilStudyProgrammeProgress\STATUS_IN_PROGRESS
const STATUS_IN_PROGRESS
Definition:
class.ilStudyProgrammeProgress.php:28
ilPrgUpdateProgressCronJob\getTitle
getTitle()
Definition:
class.ilPrgUpdateProgressCronJob.php:36
Modules
StudyProgramme
classes
class.ilPrgUpdateProgressCronJob.php
Generated on Thu Apr 3 2025 20:00:54 for ILIAS by
1.8.13 (using
Doxyfile
)