ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilCronUpdateOrgUnitPaths.php
Go to the documentation of this file.
1
<?php
24
class
ilCronUpdateOrgUnitPaths
extends
ilCronJob
25
{
26
public
const
ID
=
"orgunit_paths"
;
27
protected
ilDBInterface
$db
;
28
protected
ilLogger
$log
;
29
protected
ilTree
$tree
;
30
31
private
ilLanguage
$lng
;
32
33
public
function
__construct
()
34
{
35
global
$DIC
;
36
37
$this->
lng
= $DIC->language();
38
}
39
40
public
function
getId
(): string
41
{
42
return
self::ID;
43
}
44
45
public
function
getTitle
(): string
46
{
47
return
$this->
lng
->txt(
"update_orgunits"
);
48
}
49
50
public
function
getDescription
(): string
51
{
52
return
$this->
lng
->txt(
"update_orgunits_desc"
);
53
}
54
55
public
function
hasAutoActivation
(): bool
56
{
57
return
true
;
58
}
59
60
public
function
hasFlexibleSchedule
(): bool
61
{
62
return
true
;
63
}
64
65
public
function
getDefaultScheduleType
():
int
66
{
67
return
self::SCHEDULE_TYPE_DAILY;
68
}
69
70
public
function
getDefaultScheduleValue
(): ?
int
71
{
72
return
null;
73
}
74
75
public
function
run
():
ilCronJobResult
76
{
77
foreach
(
ilOrgUnitPathStorage::getAllOrguRefIds
() as
$ref_id
) {
78
ilOrgUnitPathStorage::writePathByRefId($ref_id);
79
}
80
ilOrgUnitPathStorage::clearDeleted();
81
$result =
new
ilCronJobResult
();
82
$result->setStatus(
ilCronJobResult::STATUS_OK
);
83
84
return
$result;
85
}
86
}
ilLogger
ilCronUpdateOrgUnitPaths\getId
getId()
Definition:
class.ilCronUpdateOrgUnitPaths.php:40
ilTree
ilLanguage
ilCronUpdateOrgUnitPaths\hasAutoActivation
hasAutoActivation()
Definition:
class.ilCronUpdateOrgUnitPaths.php:55
ilCronUpdateOrgUnitPaths\ID
const ID
Definition:
class.ilCronUpdateOrgUnitPaths.php:26
ilCronJob
Definition:
class.ilCronJob.php:21
ilCronUpdateOrgUnitPaths\$db
ilDBInterface $db
Definition:
class.ilCronUpdateOrgUnitPaths.php:27
$DIC
global $DIC
Definition:
feed.php:28
ilCronUpdateOrgUnitPaths\getDefaultScheduleType
getDefaultScheduleType()
Definition:
class.ilCronUpdateOrgUnitPaths.php:65
ilCronUpdateOrgUnitPaths\run
run()
Definition:
class.ilCronUpdateOrgUnitPaths.php:75
ilCronUpdateOrgUnitPaths
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilCronUpdateOrgUnitPaths.php:24
ilCronUpdateOrgUnitPaths\$tree
ilTree $tree
Definition:
class.ilCronUpdateOrgUnitPaths.php:29
$ref_id
$ref_id
Definition:
ltiauth.php:67
ILIAS\Repository\lng
lng()
Definition:
trait.GlobalDICDomainServices.php:56
ilCronUpdateOrgUnitPaths\hasFlexibleSchedule
hasFlexibleSchedule()
Definition:
class.ilCronUpdateOrgUnitPaths.php:60
ilCronUpdateOrgUnitPaths\__construct
__construct()
Definition:
class.ilCronUpdateOrgUnitPaths.php:33
ilDBInterface
ilCronUpdateOrgUnitPaths\getDescription
getDescription()
Definition:
class.ilCronUpdateOrgUnitPaths.php:50
ilOrgUnitPathStorage\getAllOrguRefIds
static getAllOrguRefIds()
Definition:
class.ilOrgUnitPathStorage.php:61
ilCronJobResult\STATUS_OK
const STATUS_OK
Definition:
class.ilCronJobResult.php:25
ilCronUpdateOrgUnitPaths\$lng
ilLanguage $lng
Definition:
class.ilCronUpdateOrgUnitPaths.php:31
ilCronJobResult
Definition:
class.ilCronJobResult.php:21
ilCronUpdateOrgUnitPaths\getTitle
getTitle()
Definition:
class.ilCronUpdateOrgUnitPaths.php:45
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilCronUpdateOrgUnitPaths\getDefaultScheduleValue
getDefaultScheduleValue()
Definition:
class.ilCronUpdateOrgUnitPaths.php:70
ilCronUpdateOrgUnitPaths\$log
ilLogger $log
Definition:
class.ilCronUpdateOrgUnitPaths.php:28
Modules
OrgUnit
classes
class.ilCronUpdateOrgUnitPaths.php
Generated on Tue Apr 1 2025 22:01:32 for ILIAS by
1.8.13 (using
Doxyfile
)