ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.InternalService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Exercise;
22 
23 use ILIAS\HTTP;
24 use ILIAS\Refinery;
25 
32 {
33  protected \ILIAS\DI\Container $dic;
38 
39  protected \ilDBInterface $db;
40  protected HTTP\Services $http;
41  protected Refinery\Factory $refinery;
42  protected \ilObjectService $obj_service;
43 
44 
48  public function __construct()
49  {
51  global $DIC;
52 
53  $this->dic = $DIC;
54  $this->db = $DIC->database();
55  $this->http = $DIC->http();
56  $this->refinery = $DIC->refinery();
57  $this->obj_service = $DIC->object();
58 
59  $this->data = new InternalDataService();
60  $this->repo = new InternalRepoService(
61  $this->data(),
62  $this->db
63  );
64  $this->domain = new InternalDomainService(
65  $this->dic,
66  $this->data,
67  $this->repo
68  );
69  }
70 
71  public function gui(
73  return new InternalGUIService(
74  $this->dic,
75  $this->data,
76  $this->domain
77  );
78  }
79 
83  public function repo(): InternalRepoService
84  {
85  return $this->repo;
86  }
87 
91  public function data(): InternalDataService
92  {
93  return $this->data;
94  }
95 
96  public function domain(): InternalDomainService
97  {
98  return $this->domain;
99  }
100 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Exercise UI frontend presentation service class.
Exercise internal service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
__construct()
Constructor setup ILIAS global object public.
Definition: class.ilias.php:76
global $DIC
Definition: shib_login.php:22
Internal factory for data objects.
data()
Booking service data objects.