ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1
<?
php
2
9
class
ilCronUpdateOrgUnitPaths
extends
ilCronJob
10
{
11
const
ID
=
"orgunit_paths"
;
15
protected
$db
;
19
protected
$log
;
23
protected
$tree
;
24
25
29
public
function
getId
()
30
{
31
return
self::ID;
32
}
33
34
38
public
function
getTitle
()
39
{
40
global
$DIC
;
41
$lng
= $DIC[
'lng'
];
42
43
return
$lng
->txt(
"update_orgunits"
);
44
}
45
46
50
public
function
getDescription
()
51
{
52
global
$DIC
;
53
$lng
= $DIC[
'lng'
];
54
55
return
$lng
->txt(
"update_orgunits_desc"
);
56
}
57
58
62
public
function
hasAutoActivation
()
63
{
64
return
true
;
65
}
66
67
71
public
function
hasFlexibleSchedule
()
72
{
73
return
true
;
74
}
75
76
80
public
function
getDefaultScheduleType
()
81
{
82
return
self::SCHEDULE_TYPE_DAILY;
83
}
84
85
89
public
function
getDefaultScheduleValue
()
90
{
91
return
;
92
}
93
94
98
public
function
run
()
99
{
100
foreach
(
ilOrgUnitPathStorage::getAllOrguRefIds
() as $ref_id) {
101
ilOrgUnitPathStorage::writePathByRefId($ref_id);
102
}
103
ilOrgUnitPathStorage::clearDeleted();
104
$result
=
new
ilCronJobResult
();
105
$result
->setStatus(
ilCronJobResult::STATUS_OK
);
106
107
return
$result
;
108
}
109
}
ilCronUpdateOrgUnitPaths\getId
getId()
Definition:
class.ilCronUpdateOrgUnitPaths.php:29
ilCronUpdateOrgUnitPaths\hasAutoActivation
hasAutoActivation()
Definition:
class.ilCronUpdateOrgUnitPaths.php:62
$result
$result
Definition:
CleanUpTest.php:463
$DIC
global $DIC
Definition:
saml.php:7
ilCronUpdateOrgUnitPaths\$db
$db
Definition:
class.ilCronUpdateOrgUnitPaths.php:15
ilCronUpdateOrgUnitPaths\ID
const ID
Definition:
class.ilCronUpdateOrgUnitPaths.php:11
ilCronJob
Cron job application base class.
Definition:
class.ilCronJob.php:11
ilCronUpdateOrgUnitPaths\$log
$log
Definition:
class.ilCronUpdateOrgUnitPaths.php:19
ilCronUpdateOrgUnitPaths\getDefaultScheduleType
getDefaultScheduleType()
Definition:
class.ilCronUpdateOrgUnitPaths.php:80
ilCronUpdateOrgUnitPaths\run
run()
Definition:
class.ilCronUpdateOrgUnitPaths.php:98
ilCronUpdateOrgUnitPaths
Class ilCronUpdateOrgUnitPaths.
Definition:
class.ilCronUpdateOrgUnitPaths.php:9
$lng
$lng
Definition:
save_question_post_data.php:23
ilCronUpdateOrgUnitPaths\hasFlexibleSchedule
hasFlexibleSchedule()
Definition:
class.ilCronUpdateOrgUnitPaths.php:71
ilCronUpdateOrgUnitPaths\$tree
$tree
Definition:
class.ilCronUpdateOrgUnitPaths.php:23
ilCronUpdateOrgUnitPaths\getDescription
getDescription()
Definition:
class.ilCronUpdateOrgUnitPaths.php:50
ilOrgUnitPathStorage\getAllOrguRefIds
static getAllOrguRefIds()
Definition:
class.ilOrgUnitPathStorage.php:49
ilCronJobResult\STATUS_OK
const STATUS_OK
Definition:
class.ilCronJobResult.php:15
php
ilCronJobResult
Cron job result data container.
Definition:
class.ilCronJobResult.php:11
ilCronUpdateOrgUnitPaths\getTitle
getTitle()
Definition:
class.ilCronUpdateOrgUnitPaths.php:38
ilCronUpdateOrgUnitPaths\getDefaultScheduleValue
getDefaultScheduleValue()
Definition:
class.ilCronUpdateOrgUnitPaths.php:89
Modules
OrgUnit
classes
class.ilCronUpdateOrgUnitPaths.php
Generated on Thu Jan 16 2025 19:02:06 for ILIAS by
1.8.13 (using
Doxyfile
)