ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
class.GUIService.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MediaCast\Comments
;
22
23
use
ILIAS\MediaCast\InternalDomainService
;
24
use
ILIAS\MediaCast\InternalGUIService
;
25
26
class
GUIService
27
{
28
protected \ilSetting
$settings
;
29
protected \ilAccessHandler
$access
;
30
protected \ILIAS\Notes\GUIService
$notes_gui
;
31
protected
InternalDomainService
$domain
;
32
protected
InternalGUIService
$gui
;
33
34
public
function
__construct
(
35
InternalDomainService
$domain,
36
InternalGUIService
$gui,
37
\
ILIAS
\Notes\
GUIService
$notes_gui
38
) {
39
$this->domain =
$domain
;
40
$this->notes_gui =
$notes_gui
;
41
$this->gui =
$gui
;
42
$this->
access
= $domain->access();
43
$this->
settings
= $domain->settings();
44
}
45
46
public
function
commentGUI
(
int
$mcst_ref_id,
int
$news_id): \
ilCommentGUI
47
{
48
$comments_gui = $this->notes_gui->getCommentsGUI(
49
\
ilObject::_lookupObjectId
($mcst_ref_id),
50
0,
51
"mcst"
,
52
$news_id
53
);
54
$comments_gui->
setUseObjectTitleHeader
(
false
);
55
56
if
($this->
access
->checkAccess(
"write"
,
""
, $mcst_ref_id) &&
57
$this->
settings
->get(
"comments_del_tutor"
,
'1'
)) {
58
$comments_gui->enablePublicNotesDeletion(
true
);
59
}
60
61
return
$comments_gui;
62
}
63
}
ILIAS\Repository\access
access()
Definition:
trait.GlobalDICDomainServices.php:48
InternalDomainService
ILIAS\MediaCast\Comments\GUIService\commentGUI
commentGUI(int $mcst_ref_id, int $news_id)
Definition:
class.GUIService.php:46
ILIAS\MediaCast\Comments\GUIService\$settings
ilSetting $settings
Definition:
class.GUIService.php:28
ILIAS\MediaCast\Comments\GUIService\$notes_gui
ILIAS Notes GUIService $notes_gui
Definition:
class.GUIService.php:30
ILIAS\MediaCast\Comments\GUIService\$gui
InternalGUIService $gui
Definition:
class.GUIService.php:32
ILIAS\MediaCast\Comments\GUIService
Definition:
class.GUIService.php:26
InternalGUIService
ILIAS
Class ChatMainBarProvider .
ILIAS\MediaCast\Comments\GUIService\$domain
InternalDomainService $domain
Definition:
class.GUIService.php:31
ILIAS\MediaCast\Comments\GUIService\$access
ilAccessHandler $access
Definition:
class.GUIService.php:29
ILIAS\MediaCast\InternalGUIService
Definition:
class.InternalGUIService.php:30
ilNoteGUI\setUseObjectTitleHeader
setUseObjectTitleHeader(bool $a_val)
Definition:
class.ilNoteGUI.php:196
ilObject\_lookupObjectId
static _lookupObjectId(int $ref_id)
Definition:
class.ilObject.php:1120
ILIAS\MediaCast\InternalDomainService
Definition:
class.InternalDomainService.php:30
ILIAS\Repository\settings
settings()
Definition:
trait.GlobalDICDomainServices.php:93
ILIAS\MediaCast\Comments
Definition:
class.GUIService.php:21
ilCommentGUI
Comment GUI.
Definition:
class.ilCommentGUI.php:26
ILIAS\MediaCast\Comments\GUIService\__construct
__construct(InternalDomainService $domain, InternalGUIService $gui, \ILIAS\Notes\GUIService $notes_gui)
Definition:
class.GUIService.php:34
Modules
MediaCast
Comments
Service
class.GUIService.php
Generated on Wed Sep 10 2025 14:10:31 for ILIAS by
1.8.13 (using
Doxyfile
)