ILIAS  release_8 Revision v8.24
class.ilSkillSetupAgent.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22use ILIAS\Setup;
23
25{
26 public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
27 {
29 "Updates of Services/Skill",
30 false,
31 ...$this->getObjectives()
32 );
33 }
34
35 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
36 {
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
49 "read_comp",
50 "Read Competences",
51 "object",
52 6500,
53 ["skee"]
54 );
56 "read_profiles",
57 "Read Competence Profiles",
58 "object",
59 6510,
60 ["skee"]
61 );
63 "manage_comp",
64 "Manage Competences",
65 "object",
66 8500,
67 ["skee"]
68 );
70 "manage_comp_temp",
71 "Manage Competence Templates",
72 "object",
73 8510,
74 ["skee"]
75 );
77 "manage_profiles",
78 "Manage Competence Profiles",
79 "object",
80 8520,
81 ["skee"]
82 );
83
84 // add create operation for relevant container type
86 "create_skee",
87 "Create Skill Tree",
88 "create",
89 9999,
90 ["skmg"]
91 );
92
93 // common rbac operations
95
96 // db update steps
98
99 return $objectives;
100 }
101}
A objective collection is a objective that is achieved once all subobjectives are achieved.
This class attempt to achieve a set of database update steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getStatusObjective(Setup\Metrics\Storage $storage)
getUpdateObjective(Setup\Config $config=null)
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$objectives