ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.SkillInternalService.php
Go to the documentation of this file.
1 <?php
2 
20 namespace ILIAS\Skill\Service;
21 
22 use ILIAS\HTTP;
23 use ILIAS\Refinery;
24 
30 {
34  protected int $skmg_ref_id = 0;
35  protected \ilTree $repository_tree;
36  protected \ilRbacSystem $rbac_system;
37  protected int $usr_id = 0;
38  protected HTTP\Services $http;
39  protected Refinery\Factory $refinery;
40 
41  public function __construct(int $skmg_ref_id, \ilTree $repository_tree, \ilRbacSystem $rbac_system, int $usr_id)
42  {
43  global $DIC;
44 
45  $this->skmg_ref_id = $skmg_ref_id;
46  $this->repository_tree = $repository_tree;
47  $this->rbac_system = $rbac_system;
48  $this->usr_id = $usr_id;
49  $this->http = $DIC->http();
50  $this->refinery = $DIC->refinery();
51  }
52 
53  public function repo(): SkillInternalRepoService
54  {
55  return new SkillInternalRepoService($this->factory());
56  }
57 
59  {
60  return new SkillInternalManagerService(
61  $this->skmg_ref_id,
62  $this->repository_tree,
63  $this->factory()->tree(),
64  $this->rbac_system,
65  $this->usr_id
66  );
67  }
68 
73  {
74  return new SkillInternalFactoryService();
75  }
76 
77  public function gui(
78  array $query_params = null,
79  array $post_data = null
81  return new SkillInternalGUIService(
82  $this->http,
83  $this->refinery,
84  $query_params = null,
85  $post_data = null
86  );
87  }
88 }
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...
Definition: ByTrying.php:21
__construct(int $skmg_ref_id, \ilTree $repository_tree, \ilRbacSystem $rbac_system, int $usr_id)
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
gui(array $query_params=null, array $post_data=null)
static http()
Fetches the global http state from ILIAS.
Skill UI frontend presentation internal service class.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...