ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 {
35  protected int $skmg_ref_id = 0;
36  protected \ilTree $repository_tree;
37  protected \ilRbacSystem $rbac_system;
38  protected int $usr_id = 0;
39  protected HTTP\Services $http;
40  protected Refinery\Factory $refinery;
41 
42  public function __construct(int $skmg_ref_id, \ilTree $repository_tree, \ilRbacSystem $rbac_system, int $usr_id)
43  {
44  global $DIC;
45 
46  $this->skmg_ref_id = $skmg_ref_id;
47  $this->repository_tree = $repository_tree;
48  $this->rbac_system = $rbac_system;
49  $this->usr_id = $usr_id;
50  $this->http = $DIC->http();
51  $this->refinery = $DIC->refinery();
52  }
53 
54  public function repo(): SkillInternalRepoService
55  {
56  return new SkillInternalRepoService($this->factory());
57  }
58 
60  {
61  return new SkillInternalManagerService(
62  $this->skmg_ref_id,
63  $this->repository_tree,
64  $this->factory()->tree(),
65  $this->rbac_system,
66  $this->usr_id
67  );
68  }
69 
74  {
75  return new SkillInternalFactoryService();
76  }
77 
78  public function gui(
79  ?array $query_params = null,
80  ?array $post_data = null
82  return new SkillInternalGUIService(
83  $this->http,
84  $this->refinery,
85  $query_params = null,
86  $post_data = null
87  );
88  }
89 }
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)
gui(?array $query_params=null, ?array $post_data=null)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
global $DIC
Definition: shib_login.php:22
Skill UI frontend presentation internal service class.