ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MediaCast\Comments\GUIService Class Reference
+ Collaboration diagram for ILIAS\MediaCast\Comments\GUIService:

Public Member Functions

 __construct (InternalDomainService $domain, InternalGUIService $gui, \ILIAS\Notes\GUIService $notes_gui)
 
 commentGUI (int $mcst_ref_id, int $news_id)
 

Protected Attributes

ilSetting $settings
 
ilAccessHandler $access
 
ILIAS Notes GUIService $notes_gui
 
InternalDomainService $domain
 
InternalGUIService $gui
 

Detailed Description

Definition at line 26 of file class.GUIService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaCast\Comments\GUIService::__construct ( InternalDomainService  $domain,
InternalGUIService  $gui,
\ILIAS\Notes\GUIService  $notes_gui 
)

Definition at line 34 of file class.GUIService.php.

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 }

References ILIAS\MediaCast\Comments\GUIService\$domain, ILIAS\MediaCast\Comments\GUIService\$gui, ILIAS\MediaCast\Comments\GUIService\$notes_gui, ILIAS\Repository\access(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ commentGUI()

ILIAS\MediaCast\Comments\GUIService::commentGUI ( int  $mcst_ref_id,
int  $news_id 
)

Definition at line 46 of file class.GUIService.php.

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 }
setUseObjectTitleHeader(bool $a_val)
static _lookupObjectId(int $ref_id)

References ilObject\_lookupObjectId(), ILIAS\Repository\access(), and ilNoteGUI\setUseObjectTitleHeader().

+ Here is the call graph for this function:

Field Documentation

◆ $access

ilAccessHandler ILIAS\MediaCast\Comments\GUIService::$access
protected

Definition at line 29 of file class.GUIService.php.

◆ $domain

InternalDomainService ILIAS\MediaCast\Comments\GUIService::$domain
protected

◆ $gui

InternalGUIService ILIAS\MediaCast\Comments\GUIService::$gui
protected

◆ $notes_gui

ILIAS Notes GUIService ILIAS\MediaCast\Comments\GUIService::$notes_gui
protected

◆ $settings

ilSetting ILIAS\MediaCast\Comments\GUIService::$settings
protected

Definition at line 28 of file class.GUIService.php.


The documentation for this class was generated from the following file: