ILIAS  release_8 Revision v8.24
class.SkillInternalManagerService.php
Go to the documentation of this file.
1<?php
2
20namespace ILIAS\Skill\Service;
21
26
32{
36 protected int $skmg_ref_id = 0;
37 protected \ilTree $repository_tree;
39 protected \ilRbacSystem $rbac_system;
40 protected int $usr_id = 0;
41
42 public function __construct(
43 int $skmg_ref_id,
47 int $usr_id
48 ) {
49 $this->skmg_ref_id = $skmg_ref_id;
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
57 {
58 return new SkillLevelManager();
59 }
60
62 {
63 return new SkillUserLevelManager();
64 }
65
66 public function getTreeManager(): Tree\SkillTreeManager
67 {
68 return new Tree\SkillTreeManager(
69 $this->skmg_ref_id,
70 $this->repository_tree,
71 $this->skill_tree_factory
72 );
73 }
74
78 public function getTreeNodeManager(int $tree_id): Tree\SkillTreeNodeManager
79 {
81 $tree_id,
82 $this->skill_tree_factory
83 );
84 }
85
86 public function getTreeAccessManager(int $obj_ref_id): SkillTreeAccess
87 {
88 return new SkillTreeAccess($this->rbac_system, $obj_ref_id, $this->usr_id);
89 }
90
92 {
93 return new SkillManagementAccess($this->rbac_system, $skmg_ref_id, $this->usr_id);
94 }
95
96 public function getProfileManager(): Profile\SkillProfileManager
97 {
98 return new Profile\SkillProfileManager();
99 }
100
102 {
104 }
105}
__construct(int $skmg_ref_id, \ilTree $repository_tree, Tree\SkillTreeFactory $skill_tree_factory, \ilRbacSystem $rbac_system, int $usr_id)
getTreeNodeManager(int $tree_id)
Manages nodes in a skill tree.
class ilRbacSystem system function like checkAccess, addActiveRole ... Supporting system functions ar...
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...