ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.InternalService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Exercise;
22
23use ILIAS\HTTP;
25
32{
33 protected \ILIAS\DI\Container $dic;
38
39 protected \ilDBInterface $db;
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(
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}
Internal factory for data objects.
Exercise UI frontend presentation service class.
data()
Booking service data objects.
__construct()
Constructor setup ILIAS global object @access public.
Definition: class.ilias.php:76
return['delivery_method'=> 'php',]
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...
static http()
Fetches the global http state from ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26