ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1
<?
php
2
require_once
"Services/Cron/classes/class.ilCronJob.php"
;
3
10
class
ilCronUpdateOrgUnitPaths
extends
ilCronJob
{
11
12
const
ID
=
"orgunit_paths"
;
16
protected
$db
;
20
protected
$log
;
24
protected
$tree
;
25
26
30
public
function
getId
() {
31
return
self::ID;
32
}
33
34
38
public
function
getTitle
() {
39
global
$DIC
;
40
$lng
= $DIC[
'lng'
];
41
42
return
$lng
->txt(
"update_orgunits"
);
43
}
44
45
49
public
function
getDescription
() {
50
global
$DIC
;
51
$lng
= $DIC[
'lng'
];
52
53
return
$lng
->txt(
"update_orgunits_desc"
);
54
}
55
56
60
public
function
hasAutoActivation
() {
61
return
true
;
62
}
63
64
68
public
function
hasFlexibleSchedule
() {
69
return
true
;
70
}
71
72
76
public
function
getDefaultScheduleType
() {
77
return
self::SCHEDULE_TYPE_DAILY;
78
}
79
80
84
public
function
getDefaultScheduleValue
() {
85
return
;
86
}
87
88
92
public
function
run
() {
93
require_once(
'./Modules/OrgUnit/classes/PathStorage/class.ilOrgUnitPathStorage.php'
);
94
foreach
(
ilOrgUnitPathStorage::getAllOrguRefIds
() as
$ref_id
) {
95
ilOrgUnitPathStorage::writePathByRefId($ref_id);
96
}
97
ilOrgUnitPathStorage::clearDeleted();
98
$result
=
new
ilCronJobResult
();
99
$result
->setStatus(
ilCronJobResult::STATUS_OK
);
100
101
return
$result
;
102
}
103
}
ilCronUpdateOrgUnitPaths\getId
getId()
Definition:
class.ilCronUpdateOrgUnitPaths.php:30
ilCronUpdateOrgUnitPaths\hasAutoActivation
hasAutoActivation()
Definition:
class.ilCronUpdateOrgUnitPaths.php:60
$result
$result
Definition:
CleanUpTest.php:407
ilCronUpdateOrgUnitPaths\$db
$db
Definition:
class.ilCronUpdateOrgUnitPaths.php:16
ilCronUpdateOrgUnitPaths\ID
const ID
Definition:
class.ilCronUpdateOrgUnitPaths.php:12
ilCronJob
Cron job application base class.
Definition:
class.ilCronJob.php:11
ilCronUpdateOrgUnitPaths\$log
$log
Definition:
class.ilCronUpdateOrgUnitPaths.php:20
ilCronUpdateOrgUnitPaths\getDefaultScheduleType
getDefaultScheduleType()
Definition:
class.ilCronUpdateOrgUnitPaths.php:76
ilCronUpdateOrgUnitPaths\run
run()
Definition:
class.ilCronUpdateOrgUnitPaths.php:92
ilCronUpdateOrgUnitPaths
Class ilCronUpdateOrgUnitPaths.
Definition:
class.ilCronUpdateOrgUnitPaths.php:10
ilCronUpdateOrgUnitPaths\hasFlexibleSchedule
hasFlexibleSchedule()
Definition:
class.ilCronUpdateOrgUnitPaths.php:68
ilCronUpdateOrgUnitPaths\$tree
$tree
Definition:
class.ilCronUpdateOrgUnitPaths.php:24
ilCronUpdateOrgUnitPaths\getDescription
getDescription()
Definition:
class.ilCronUpdateOrgUnitPaths.php:49
ilOrgUnitPathStorage\getAllOrguRefIds
static getAllOrguRefIds()
Definition:
class.ilOrgUnitPathStorage.php:49
$ref_id
$ref_id
Definition:
sahs_server.php:39
ilCronJobResult\STATUS_OK
const STATUS_OK
Definition:
class.ilCronJobResult.php:15
$lng
global $lng
Definition:
privfeed.php:17
php
$DIC
global $DIC
Definition:
imagemanager.php:32
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:84
Modules
OrgUnit
classes
class.ilCronUpdateOrgUnitPaths.php
Generated on Fri Jan 17 2025 19:01:00 for ILIAS by
1.8.13 (using
Doxyfile
)