ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Skill\Service;
22 
23 use ILIAS\Container;
24 use ILIAS\Survey;
25 use ILIAS\Test;
27 
33 {
37  protected int $skmg_ref_id = 0;
38  protected \ilTree $repository_tree;
39  protected \ilRbacSystem $rbac_system;
40  protected int $usr_id = 0;
41 
42  public function __construct()
43  {
44  global $DIC;
45 
46  $this->repository_tree = $DIC->repositoryTree();
47  $this->rbac_system = $DIC->rbac()->system();
48  $this->usr_id = $DIC->user()->getId();
49  }
50 
54  public function user(int $id): SkillUserService
55  {
56  return new SkillUserService($id);
57  }
58 
62  public function ui(): SkillUIService
63  {
64  return new SkillUIService();
65  }
66 
70  public function tree(): SkillTreeService
71  {
72  return new SkillTreeService($this->internal());
73  }
74 
78  public function profile(): SkillProfileService
79  {
80  return new SkillProfileService($this->internal());
81  }
82 
86  public function personal(): SkillPersonalService
87  {
88  return new SkillPersonalService($this->internal());
89  }
90 
94  public function usage(): SkillUsageService
95  {
96  return new SkillUsageService($this->internal());
97  }
98 
102  public function internal(): SkillInternalService
103  {
104  return new SkillInternalService(
105  $this->repository_tree,
106  $this->rbac_system,
107  $this->usr_id
108  );
109  }
110 
115  {
117  }
118 
122  public function internalSurvey(): Survey\Skills\SkillInternalService
123  {
125  }
126 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
internalSurvey()
Internal service for Skill classes in Survey Module.
ui()
External ui service facade.
personal()
External personal service facade.
user(int $id)
External user service facade.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
profile()
External profile service facade.
tree()
External tree service facade.
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...
usage()
External usage service facade.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
internalContainer()
Internal service for Skill classes in Container Service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...