ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.SkillInternalManagerService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Service;
23 
33 
39 {
43  protected int $skmg_ref_id = 0;
44  protected \ilTree $repository_tree;
46  protected \ilRbacSystem $rbac_system;
47  protected int $usr_id = 0;
48 
49  public function __construct(
50  int $skmg_ref_id,
51  \ilTree $repository_tree,
52  Tree\SkillTreeFactory $skill_tree_factory,
53  \ilRbacSystem $rbac_system,
54  int $usr_id
55  ) {
56  $this->skmg_ref_id = $skmg_ref_id;
57  $this->repository_tree = $repository_tree;
58  $this->skill_tree_factory = $skill_tree_factory;
59  $this->rbac_system = $rbac_system;
60  $this->usr_id = $usr_id;
61  }
62 
63  public function getLevelManager(): Level\SkillLevelManager
64  {
65  return new Level\SkillLevelManager();
66  }
67 
68  public function getUserLevelManager(): Level\SkillUserLevelManager
69  {
70  return new Level\SkillUserLevelManager();
71  }
72 
73  public function getTreeManager(): Tree\SkillTreeManager
74  {
75  return new Tree\SkillTreeManager(
76  $this->skmg_ref_id,
77  $this->repository_tree,
78  $this->skill_tree_factory
79  );
80  }
81 
85  public function getTreeNodeManager(int $tree_id): Node\SkillTreeNodeManager
86  {
87  return new Node\SkillTreeNodeManager(
88  $tree_id,
89  $this->skill_tree_factory
90  );
91  }
92 
93  public function getTreeAccessManager(int $obj_ref_id): Access\SkillTreeAccess
94  {
95  return new Access\SkillTreeAccess($this->rbac_system, $obj_ref_id, $this->usr_id);
96  }
97 
98  public function getManagementAccessManager(int $skmg_ref_id): Access\SkillManagementAccess
99  {
100  return new Access\SkillManagementAccess($this->rbac_system, $skmg_ref_id, $this->usr_id);
101  }
102 
103  public function getProfileManager(): Profile\SkillProfileManager
104  {
105  return new Profile\SkillProfileManager();
106  }
107 
109  {
111  }
112 
113  public function getPersonalSkillManager(): Personal\PersonalSkillManager
114  {
115  return new Personal\PersonalSkillManager();
116  }
117 
119  {
121  }
122 
124  {
125  return new Personal\SelfEvaluationManager();
126  }
127 
128  public function getResourceManager(): Resource\SkillResourcesManager
129  {
130  return new Resource\SkillResourcesManager();
131  }
132 
133  public function getTableManager(): Table\TableManager
134  {
135  return new Table\TableManager();
136  }
137 
138  public function getDeletionManager(): Node\SkillDeletionManager
139  {
140  return new Node\SkillDeletionManager();
141  }
142 
143  public function getUsageManager(): Usage\SkillUsageManager
144  {
145  return new Usage\SkillUsageManager();
146  }
147 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTreeNodeManager(int $tree_id)
Manages nodes in a skill tree.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $skmg_ref_id, \ilTree $repository_tree, Tree\SkillTreeFactory $skill_tree_factory, \ilRbacSystem $rbac_system, int $usr_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...