ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilSkillSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Setup;
22
24{
25 public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
26 {
28 "Updates of Services/Skill",
29 false,
30 ...$this->getObjectives()
31 );
32 }
33
34 public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
35 {
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
48 "read_comp",
49 "Read Competences",
50 "object",
51 6500,
52 ["skee"]
53 );
55 "read_profiles",
56 "Read Competence Profiles",
57 "object",
58 6510,
59 ["skee"]
60 );
62 "manage_comp",
63 "Manage Competences",
64 "object",
65 8500,
66 ["skee"]
67 );
69 "manage_comp_temp",
70 "Manage Competence Templates",
71 "object",
72 8510,
73 ["skee"]
74 );
76 "manage_profiles",
77 "Manage Competence Profiles",
78 "object",
79 8520,
80 ["skee"]
81 );
82
83 // add create operation for relevant container type
85 "create_skee",
86 "Create Skill Tree",
87 "create",
88 9999,
89 ["skmg"]
90 );
91
92 // common rbac operations
94
95 // db update steps
97
98 return $objectives;
99 }
100}
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.
getUpdateObjective(?Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
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
Storage is simple key/value store without further schema definition.
Definition: Storage.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$objectives