ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.SkillInternalService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 namespace ILIAS\Skill\Service;
23 
24 use ILIAS\HTTP;
25 use ILIAS\Refinery;
26 
32 {
36  protected int $skmg_ref_id = 0;
37  protected \ilTree $repository_tree;
38  protected \ilRbacSystem $rbac_system;
39  protected int $usr_id = 0;
40  protected HTTP\Services $http;
41  protected Refinery\Factory $refinery;
42 
43  public function __construct(int $skmg_ref_id, \ilTree $repository_tree, \ilRbacSystem $rbac_system, int $usr_id)
44  {
45  global $DIC;
46 
47  $this->skmg_ref_id = $skmg_ref_id;
48  $this->repository_tree = $repository_tree;
49  $this->rbac_system = $rbac_system;
50  $this->usr_id = $usr_id;
51  $this->http = $DIC->http();
52  $this->refinery = $DIC->refinery();
53  }
54 
55  public function repo(): SkillInternalRepoService
56  {
57  return new SkillInternalRepoService($this->factory());
58  }
59 
61  {
62  return new SkillInternalManagerService(
63  $this->skmg_ref_id,
64  $this->repository_tree,
65  $this->factory()->tree(),
66  $this->rbac_system,
67  $this->usr_id
68  );
69  }
70 
75  {
76  return new SkillInternalFactoryService();
77  }
78 
79  public function gui(
80  array $query_params = null,
81  array $post_data = null
83  return new SkillInternalGUIService(
84  $this->http,
85  $this->refinery,
86  $query_params = null,
87  $post_data = null
88  );
89  }
90 }
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, \ilRbacSystem $rbac_system, int $usr_id)
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.
global $DIC
Definition: shib_login.php:25
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...