ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
class.InternalService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Like
;
22
23
use
ILIAS\DI\Container
;
24
25
class
InternalService
26
{
27
protected
Container
$DIC
;
28
protected
static
array
$instance
= [];
29
30
public
function
__construct
(
Container
$DIC)
31
{
32
$this->
DIC
=
$DIC
;
33
}
34
35
public
function
data
():
InternalDataService
36
{
37
return
self::$instance[
"data"
] ??=
new
InternalDataService
();
38
}
39
40
public
function
repo
():
InternalRepoService
41
{
42
return
self::$instance[
"repo"
] ??=
new
InternalRepoService
(
43
$this->
data
(),
44
$this->
DIC
->database()
45
);
46
}
47
48
public
function
domain
():
InternalDomainService
49
{
50
return
self::$instance[
"domain"
] ??=
new
InternalDomainService
(
51
$this->
DIC
,
52
$this->
repo
(),
53
$this->
data
()
54
);
55
}
56
57
public
function
gui
():
InternalGUIService
58
{
59
return
self::$instance[
"gui"
] ??=
new
InternalGUIService
(
60
$this->
DIC
,
61
$this->
data
(),
62
$this->
domain
()
63
);
64
}
65
}
ILIAS\Like
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.StandardGUIRequest.php:19
ILIAS\Like\InternalService
Definition:
class.InternalService.php:25
ILIAS\Like\InternalDataService
Definition:
class.InternalDataService.php:23
ILIAS\Like\InternalService\data
data()
Definition:
class.InternalService.php:35
ILIAS\Like\InternalRepoService
Definition:
class.InternalRepoService.php:23
Container
ILIAS\Like\InternalService\$DIC
Container $DIC
Definition:
class.InternalService.php:27
ILIAS\Like\InternalService\$instance
static array $instance
Definition:
class.InternalService.php:28
ILIAS\Like\InternalService\gui
gui()
Definition:
class.InternalService.php:57
ILIAS\Like\InternalService\domain
domain()
Definition:
class.InternalService.php:48
DIC
ILIAS\Like\InternalService\__construct
__construct(Container $DIC)
Definition:
class.InternalService.php:30
ILIAS\Container
Definition:
Container.php:23
ILIAS\Like\InternalDomainService
Definition:
class.InternalDomainService.php:26
ILIAS\Like\InternalService\repo
repo()
Definition:
class.InternalService.php:40
ILIAS\Like\InternalGUIService
Definition:
class.InternalGUIService.php:26
components
ILIAS
Like
Service
class.InternalService.php
Generated on Wed Sep 3 2025 23:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)