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.ilSkillSetupAgent.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
22
use
ILIAS\Setup
;
23
24
class
ilSkillSetupAgent
extends
Setup\Agent\NullAgent
25
{
26
public
function
getUpdateObjective
(Setup\
Config
$config
= null): Setup\
Objective
27
{
28
return
new
Setup\ObjectiveCollection(
29
"Updates of Services/Skill"
,
30
false
,
31
...$this->
getObjectives
()
32
);
33
}
34
35
public
function
getStatusObjective
(Setup\Metrics\Storage $storage): Setup\
Objective
36
{
37
return
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilSkillDBUpdateSteps
());
38
}
39
40
protected
function
getObjectives
(): array
41
{
42
$objectives
= [];
43
44
// add basic object type and put in tree
45
$objectives
[] =
new
ilTreeAdminNodeAddedObjective
(
"skee"
,
"Skill Tree"
,
"skmg"
);
46
47
// custom rbac operations
48
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
49
"read_comp"
,
50
"Read Competences"
,
51
"object"
,
52
6500,
53
[
"skee"
]
54
);
55
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
56
"read_profiles"
,
57
"Read Competence Profiles"
,
58
"object"
,
59
6510,
60
[
"skee"
]
61
);
62
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
63
"manage_comp"
,
64
"Manage Competences"
,
65
"object"
,
66
8500,
67
[
"skee"
]
68
);
69
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
70
"manage_comp_temp"
,
71
"Manage Competence Templates"
,
72
"object"
,
73
8510,
74
[
"skee"
]
75
);
76
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
77
"manage_profiles"
,
78
"Manage Competence Profiles"
,
79
"object"
,
80
8520,
81
[
"skee"
]
82
);
83
84
// add create operation for relevant container type
85
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
86
"create_skee"
,
87
"Create Skill Tree"
,
88
"create"
,
89
9999,
90
[
"skmg"
]
91
);
92
93
// common rbac operations
94
$objectives
[] =
new
ilAccessRbacStandardOperationsAddedObjective
(
"skee"
);
95
96
// db update steps
97
$objectives
[] =
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilSkillDBUpdateSteps
());
98
99
return
$objectives
;
100
}
101
}
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:30
ilSkillSetupAgent\getObjectives
getObjectives()
Definition:
class.ilSkillSetupAgent.php:40
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:85
ilDatabaseUpdateStepsExecutedObjective
ilDatabaseUpdateStepsMetricsCollectedObjective
ilSkillSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilSkillSetupAgent.php:35
$objectives
$objectives
Definition:
storeScorm2004.php:40
ilSkillSetupAgent
Definition:
class.ilSkillSetupAgent.php:24
ilSkillDBUpdateSteps
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilSkillDBUpdateSteps.php:22
ilAccessCustomRBACOperationAddedObjective
Definition:
class.ilAccessCustomRBACOperationAddedObjective.php:26
ilTreeAdminNodeAddedObjective
Definition:
class.ilTreeAdminNodeAddedObjective.php:24
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilMysqlMyIsamToInnoDbMigration.php:19
ilAccessRbacStandardOperationsAddedObjective
Definition:
class.ilAccessRBACStandardOperationsAddedObjective.php:25
ilSkillSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilSkillSetupAgent.php:26
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
Services
Skill
classes
Setup
class.ilSkillSetupAgent.php
Generated on Thu Apr 10 2025 22:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)