ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillInternalManagerService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Skill\Service;
22 
32 
38 {
39  protected \ilTree $repository_tree;
41  protected \ilRbacSystem $rbac_system;
42  protected int $usr_id = 0;
43 
44  public function __construct(
45  \ilTree $repository_tree,
46  Tree\SkillTreeFactory $skill_tree_factory,
47  \ilRbacSystem $rbac_system,
48  int $usr_id
49  ) {
50  $this->repository_tree = $repository_tree;
51  $this->skill_tree_factory = $skill_tree_factory;
52  $this->rbac_system = $rbac_system;
53  $this->usr_id = $usr_id;
54  }
55 
56  public function getLevelManager(): Level\SkillLevelManager
57  {
58  return new Level\SkillLevelManager();
59  }
60 
61  public function getUserLevelManager(): Level\SkillUserLevelManager
62  {
63  return new Level\SkillUserLevelManager();
64  }
65 
66  public function getTreeManager(): Tree\SkillTreeManager
67  {
68  return new Tree\SkillTreeManager(
69  $this->repository_tree,
70  $this->skill_tree_factory
71  );
72  }
73 
77  public function getTreeNodeManager(int $tree_id): Node\SkillTreeNodeManager
78  {
79  return new Node\SkillTreeNodeManager(
80  $tree_id,
81  $this->skill_tree_factory
82  );
83  }
84 
85  public function getTreeAccessManager(int $obj_ref_id): Access\SkillTreeAccess
86  {
87  return new Access\SkillTreeAccess($this->rbac_system, $obj_ref_id, $this->usr_id);
88  }
89 
90  public function getManagementAccessManager(int $skmg_ref_id): Access\SkillManagementAccess
91  {
92  return new Access\SkillManagementAccess($this->rbac_system, $skmg_ref_id, $this->usr_id);
93  }
94 
95  public function getProfileManager(): Profile\SkillProfileManager
96  {
97  return new Profile\SkillProfileManager();
98  }
99 
101  {
103  }
104 
105  public function getPersonalSkillManager(): Personal\PersonalSkillManager
106  {
107  return new Personal\PersonalSkillManager();
108  }
109 
111  {
113  }
114 
116  {
117  return new Personal\SelfEvaluationManager();
118  }
119 
120  public function getResourceManager(): Resource\SkillResourcesManager
121  {
122  return new Resource\SkillResourcesManager();
123  }
124 
125  public function getTableManager(): Table\TableManager
126  {
127  return new Table\TableManager();
128  }
129 
130  public function getDeletionManager(): Node\SkillDeletionManager
131  {
132  return new Node\SkillDeletionManager();
133  }
134 
135  public function getUsageManager(): Usage\SkillUsageManager
136  {
137  return new Usage\SkillUsageManager();
138  }
139 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(\ilTree $repository_tree, Tree\SkillTreeFactory $skill_tree_factory, \ilRbacSystem $rbac_system, int $usr_id)
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...
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...