ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.SkillInternalService.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\HTTP;
24 use ILIAS\Refinery;
25 
31 {
32  protected \ilTree $repository_tree;
33  protected \ilRbacSystem $rbac_system;
34  protected int $usr_id = 0;
35  protected HTTP\Services $http;
36  protected Refinery\Factory $refinery;
37 
38  public function __construct(\ilTree $repository_tree, \ilRbacSystem $rbac_system, int $usr_id)
39  {
40  global $DIC;
41  $this->repository_tree = $repository_tree;
42  $this->rbac_system = $rbac_system;
43  $this->usr_id = $usr_id;
44  $this->http = $DIC->http();
45  $this->refinery = $DIC->refinery();
46  }
47 
48  public function repo(): SkillInternalRepoService
49  {
50  return new SkillInternalRepoService($this->factory());
51  }
52 
54  {
55  return new SkillInternalManagerService(
56  $this->repository_tree,
57  $this->factory()->tree(),
58  $this->rbac_system,
59  $this->usr_id
60  );
61  }
62 
67  {
68  return new SkillInternalFactoryService();
69  }
70 
71  public function gui(
72  array $query_params = null,
73  array $post_data = null
75  return new SkillInternalGUIService(
76  $this->http,
77  $this->refinery,
78  $query_params = null,
79  $post_data = null
80  );
81  }
82 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(\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...