ILIAS  trunk Revision v12.0_alpha-1221-g4e438232683
ilPersonalDesktopSettingsRepository Class Reference
+ Collaboration diagram for ilPersonalDesktopSettingsRepository:

Public Member Functions

 __construct (protected readonly Setting $settings)
 
 ifNotesEnabled ()
 
 enableNotes (bool $active=true)
 
 ifCommentsEnabled ()
 
 enableComments (bool $active=true)
 
 ifAuthorsCanDelete ()
 
 enableAuthorsCanDelete (bool $active=true)
 
 ifTutorsCanDelete ()
 
 enableTutorsCanDelete (bool $active=true)
 
 getCommentsNotificationRecipients ()
 
 updateCommentsNotificationRecipients (string $recipients)
 
 ifLearningHistoryEnabled ()
 
 enableLearningHistory (bool $active=true)
 
 ifChatViewerEnabled ()
 
 enableChatViewer (bool $active=true)
 
 getSystemMessagePresentation ()
 
 updateSystemMessagePresentation (int $mode)
 
 ifForumDrafts ()
 
 enableForumDrafts (bool $active=true)
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopSettingsRepository::__construct ( protected readonly Setting  $settings)

Definition at line 25 of file class.ilPersonalDesktopSettingsRepository.php.

26 {
27 }

Member Function Documentation

◆ enableAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::enableAuthorsCanDelete ( bool  $active = true)

Definition at line 54 of file class.ilPersonalDesktopSettingsRepository.php.

54 : void
55 {
56 $this->settings->set('comments_del_user', $active ? '1' : '0');
57 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableChatViewer()

ilPersonalDesktopSettingsRepository::enableChatViewer ( bool  $active = true)

Definition at line 94 of file class.ilPersonalDesktopSettingsRepository.php.

94 : void
95 {
96 $this->settings->set('block_activated_chatviewer', $active ? '1' : '0');
97 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableComments()

ilPersonalDesktopSettingsRepository::enableComments ( bool  $active = true)

Definition at line 44 of file class.ilPersonalDesktopSettingsRepository.php.

44 : void
45 {
46 $this->settings->set('disable_comments', $active ? '0' : '1');
47 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableForumDrafts()

ilPersonalDesktopSettingsRepository::enableForumDrafts ( bool  $active = true)

Definition at line 114 of file class.ilPersonalDesktopSettingsRepository.php.

114 : void
115 {
116 $this->settings->set('block_activated_pdfrmpostdraft', $active ? '1' : '0');
117 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableLearningHistory()

ilPersonalDesktopSettingsRepository::enableLearningHistory ( bool  $active = true)

Definition at line 84 of file class.ilPersonalDesktopSettingsRepository.php.

84 : void
85 {
86 $this->settings->set('enable_learning_history', $active ? '1' : '0');
87 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableNotes()

ilPersonalDesktopSettingsRepository::enableNotes ( bool  $active = true)

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

34 : void
35 {
36 $this->settings->set('disable_notes', $active ? '0' : '1');
37 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableTutorsCanDelete()

ilPersonalDesktopSettingsRepository::enableTutorsCanDelete ( bool  $active = true)

Definition at line 64 of file class.ilPersonalDesktopSettingsRepository.php.

64 : void
65 {
66 $this->settings->set('comments_del_tutor', $active ? '1' : '0');
67 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ getCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::getCommentsNotificationRecipients ( )

Definition at line 69 of file class.ilPersonalDesktopSettingsRepository.php.

69 : string
70 {
71 return (string) $this->settings->get('comments_noti_recip');
72 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ getSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::getSystemMessagePresentation ( )

Definition at line 99 of file class.ilPersonalDesktopSettingsRepository.php.

99 : int
100 {
101 return (int) $this->settings->get('pd_sys_msg_mode');
102 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::ifAuthorsCanDelete ( )

Definition at line 49 of file class.ilPersonalDesktopSettingsRepository.php.

49 : bool
50 {
51 return (bool) $this->settings->get('comments_del_user', '0');
52 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifChatViewerEnabled()

ilPersonalDesktopSettingsRepository::ifChatViewerEnabled ( )

Definition at line 89 of file class.ilPersonalDesktopSettingsRepository.php.

89 : bool
90 {
91 return (bool) $this->settings->get('block_activated_chatviewer');
92 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifCommentsEnabled()

ilPersonalDesktopSettingsRepository::ifCommentsEnabled ( )

Definition at line 39 of file class.ilPersonalDesktopSettingsRepository.php.

39 : bool
40 {
41 return !$this->settings->get('disable_comments');
42 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifForumDrafts()

ilPersonalDesktopSettingsRepository::ifForumDrafts ( )

Definition at line 109 of file class.ilPersonalDesktopSettingsRepository.php.

109 : bool
110 {
111 return (bool) $this->settings->get('block_activated_pdfrmpostdraft', '0');
112 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifLearningHistoryEnabled()

ilPersonalDesktopSettingsRepository::ifLearningHistoryEnabled ( )

Definition at line 79 of file class.ilPersonalDesktopSettingsRepository.php.

79 : bool
80 {
81 return (bool) $this->settings->get('enable_learning_history');
82 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifNotesEnabled()

ilPersonalDesktopSettingsRepository::ifNotesEnabled ( )

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

29 : bool
30 {
31 return !$this->settings->get('disable_notes');
32 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifTutorsCanDelete()

ilPersonalDesktopSettingsRepository::ifTutorsCanDelete ( )

Definition at line 59 of file class.ilPersonalDesktopSettingsRepository.php.

59 : bool
60 {
61 return (bool) $this->settings->get('comments_del_tutor', '1');
62 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ updateCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::updateCommentsNotificationRecipients ( string  $recipients)

Definition at line 74 of file class.ilPersonalDesktopSettingsRepository.php.

74 : void
75 {
76 $this->settings->set('comments_noti_recip', $recipients);
77 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ updateSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::updateSystemMessagePresentation ( int  $mode)

Definition at line 104 of file class.ilPersonalDesktopSettingsRepository.php.

104 : void
105 {
106 $this->settings->set('pd_sys_msg_mode', (string) $mode);
107 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

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