ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilSkillSetupAgent.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\Setup
;
22
23
class
ilSkillSetupAgent
extends
Setup\Agent\NullAgent
24
{
25
public
function
getUpdateObjective
(?
Setup
\
Config
$config =
null
):
Setup
\
Objective
26
{
27
return
new
Setup\ObjectiveCollection(
28
"Updates of Services/Skill"
,
29
false
,
30
...$this->
getObjectives
()
31
);
32
}
33
34
public
function
getStatusObjective
(
Setup
\Metrics\
Storage
$storage):
Setup
\
Objective
35
{
36
return
new
ilDatabaseUpdateStepsMetricsCollectedObjective
($storage,
new
ilSkillDBUpdateSteps
());
37
}
38
39
protected
function
getObjectives
(): array
40
{
41
$objectives
= [];
42
43
// add basic object type and put in tree
44
$objectives
[] =
new
ilTreeAdminNodeAddedObjective
(
"skee"
,
"Skill Tree"
,
"skmg"
);
45
46
// custom rbac operations
47
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
48
"read_comp"
,
49
"Read Competences"
,
50
"object"
,
51
6500,
52
[
"skee"
]
53
);
54
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
55
"read_profiles"
,
56
"Read Competence Profiles"
,
57
"object"
,
58
6510,
59
[
"skee"
]
60
);
61
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
62
"manage_comp"
,
63
"Manage Competences"
,
64
"object"
,
65
8500,
66
[
"skee"
]
67
);
68
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
69
"manage_comp_temp"
,
70
"Manage Competence Templates"
,
71
"object"
,
72
8510,
73
[
"skee"
]
74
);
75
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
76
"manage_profiles"
,
77
"Manage Competence Profiles"
,
78
"object"
,
79
8520,
80
[
"skee"
]
81
);
82
83
// add create operation for relevant container type
84
$objectives
[] =
new
ilAccessCustomRBACOperationAddedObjective
(
85
"create_skee"
,
86
"Create Skill Tree"
,
87
"create"
,
88
9999,
89
[
"skmg"
]
90
);
91
92
// common rbac operations
93
$objectives
[] =
new
ilAccessRbacStandardOperationsAddedObjective
(
"skee"
);
94
95
// db update steps
96
$objectives
[] =
new
ilDatabaseUpdateStepsExecutedObjective
(
new
ilSkillDBUpdateSteps
());
97
98
return
$objectives
;
99
}
100
}
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:39
ilTreeAdminNodeAddedObjective
ilDatabaseUpdateStepsExecutedObjective
ilDatabaseUpdateStepsMetricsCollectedObjective
ilSkillSetupAgent\getStatusObjective
getStatusObjective(Setup\Metrics\Storage $storage)
Definition:
class.ilSkillSetupAgent.php:34
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ilSkillSetupAgent\getUpdateObjective
getUpdateObjective(?Setup\Config $config=null)
Definition:
class.ilSkillSetupAgent.php:25
$objectives
$objectives
Definition:
storeScorm2004.php:39
ILIAS\UI\Storage
Storage is simple key/value store without further schema definition.
Definition:
Storage.php:29
ilSkillSetupAgent
Definition:
class.ilSkillSetupAgent.php:23
ilSkillDBUpdateSteps
Definition:
class.ilSkillDBUpdateSteps.php:21
ilAccessCustomRBACOperationAddedObjective
Definition:
class.ilAccessCustomRBACOperationAddedObjective.php:25
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:24
ILIAS\Setup
Definition:
Setup.php:25
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:26
components
ILIAS
Skill
classes
Setup
class.ilSkillSetupAgent.php
Generated on Sun Aug 31 2025 23:03:41 for ILIAS by
1.8.13 (using
Doxyfile
)