ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.InternalDomainService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Blog
;
22
23
use
ILIAS\DI\Container
;
24
use
ILIAS\Repository\GlobalDICDomainServices
;
25
use
ILIAS\Blog\Exercise\BlogExercise
;
26
use
ILIAS\Blog\Permission\PermissionManager
;
27
use
ILIAS\Blog\ReadingTime\ReadingTimeManager
;
28
use
ILIAS\Blog\Settings\SettingsManager
;
29
use
ILIAS\Blog\Posting\PostingManager
;
30
use
ILIAS\Notes
;
31
use
ILIAS\Blog\News\NewsManager
;
32
use
ILIAS\Blog\Notification\NotificationManager
;
33
37
class
InternalDomainService
38
{
39
use
GlobalDICDomainServices
;
40
41
protected
static
array
$instance
= [];
42
protected
Container
$dic
;
43
44
public
function
__construct
(
45
Container
$DIC
,
46
protected
InternalRepoService
$repo,
47
protected
InternalDataService
$data
48
) {
49
$this->
initDomainServices
($DIC);
50
$this->dic =
$DIC
;
51
}
52
53
public
function
exercise
(
int
$a_node_id):
BlogExercise
54
{
55
return
new
BlogExercise
(
56
$a_node_id,
57
$this->
repositoryTree
(),
58
$this->
user
()
59
);
60
}
61
62
public
function
perm
(
63
$access_handler,
64
?
int
$node_id,
65
int
$id_type,
66
int
$user_id
,
67
int
$owner
68
):
PermissionManager
{
69
return
new
PermissionManager
(
70
$access_handler,
71
$node_id,
72
$id_type,
73
$user_id,
74
$owner
75
);
76
}
77
78
public
function
readingTime
():
ReadingTimeManager
79
{
80
return
new
ReadingTimeManager
();
81
}
82
83
public
function
notes
():
Notes
\DomainService
84
{
85
return
$this->dic->notes()->domain();
86
}
87
88
public
function
blogSettings
():
SettingsManager
89
{
90
return
self::$instance[
"settings"
] ??
91
self::$instance[
"settings"
] =
new
SettingsManager
(
92
$this->data,
93
$this->repo,
94
$this
95
);
96
}
97
98
public
function
posting
():
PostingManager
99
{
100
return
self::$instance[
"posting"
] ??=
new
PostingManager
(
101
$this->data,
102
$this->repo,
103
$this
104
);
105
}
106
107
public
function
news
():
NewsManager
108
{
109
return
self::$instance[
"news"
] ??=
new
NewsManager
(
110
$this->data,
111
$this->repo,
112
$this
113
);
114
}
115
116
public
function
notification
():
NotificationManager
117
{
118
return
self::$instance[
"notification"
] ??=
new
NotificationManager
(
119
$this
120
);
121
}
122
123
}
PostingManager
$data
$data
Definition:
ltiregistration.php:29
ReadingTimeManager
PermissionManager
ILIAS\Blog\InternalDomainService\readingTime
readingTime()
Definition:
class.InternalDomainService.php:78
ILIAS\Blog\InternalDomainService\perm
perm( $access_handler, ?int $node_id, int $id_type, int $user_id, int $owner)
Definition:
class.InternalDomainService.php:62
ILIAS\Exercise\BlogExercise
Blog Exercise.
Definition:
class.BlogExercise.php:27
$user_id
int $user_id
Definition:
trait.ilExAssignmentTypeGUIBase.php:38
ILIAS\Repository\initDomainServices
initDomainServices(\ILIAS\DI\Container $DIC)
Definition:
trait.GlobalDICDomainServices.php:41
ILIAS\Blog\InternalDomainService
Definition:
class.InternalDomainService.php:37
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
ILIAS\Notes
Definition:
Notes.php:23
ILIAS\Repository\user
user()
Definition:
trait.GlobalDICDomainServices.php:66
Container
NewsManager
ILIAS\Notes
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.Context.php:21
ILIAS\Blog\InternalDomainService\exercise
exercise(int $a_node_id)
Definition:
class.InternalDomainService.php:53
ILIAS\Blog\News\NewsManager
Domain class for handling news items of blog postings.
Definition:
class.NewsManager.php:30
ILIAS\Blog\Settings\SettingsManager
Definition:
SettingsManager.php:27
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\Blog\InternalDomainService\news
news()
Definition:
class.InternalDomainService.php:107
ILIAS\Blog\InternalDataService
Definition:
class.InternalDataService.php:29
ILIAS\Blog\InternalDomainService\blogSettings
blogSettings()
Definition:
class.InternalDomainService.php:88
ILIAS\Blog\Permission\PermissionManager
Definition:
PermissionManager.php:23
BlogExercise
ILIAS\Blog\InternalDomainService\notes
notes()
Definition:
class.InternalDomainService.php:83
SettingsManager
ILIAS\Blog
Definition:
class.StandardGUIRequest.php:21
ILIAS\Repository\repositoryTree
repositoryTree()
Definition:
trait.GlobalDICDomainServices.php:46
ILIAS\Blog\InternalRepoService
Definition:
class.InternalRepoService.php:26
ILIAS\Blog\InternalDomainService\$dic
Container $dic
Definition:
class.InternalDomainService.php:42
ILIAS\Blog\InternalDomainService\$instance
static array $instance
Definition:
class.InternalDomainService.php:41
ILIAS\Repository\GlobalDICDomainServices
trait GlobalDICDomainServices
Definition:
trait.GlobalDICDomainServices.php:38
ILIAS\Blog\InternalDomainService\__construct
__construct(Container $DIC, protected InternalRepoService $repo, protected InternalDataService $data)
Definition:
class.InternalDomainService.php:44
ILIAS\Blog\Posting\PostingManager
Definition:
class.PostingManager.php:28
ILIAS\UI\Component\MainControls\Slate\Notification\NotificationManager
Definition:
NotificationManager.php:25
ILIAS\Blog\InternalDomainService\notification
notification()
Definition:
class.InternalDomainService.php:116
NotificationManager
ILIAS\Blog\ReadingTime\ReadingTimeManager
Definition:
class.ReadingTimeManager.php:26
GlobalDICDomainServices
ILIAS\Blog\InternalDomainService\posting
posting()
Definition:
class.InternalDomainService.php:98
components
ILIAS
Blog
Service
class.InternalDomainService.php
Generated on Sun Aug 31 2025 23:02:09 for ILIAS by
1.8.13 (using
Doxyfile
)