ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPersonalDesktopSettingsRepository Class Reference
+ Collaboration diagram for ilPersonalDesktopSettingsRepository:

Public Member Functions

 __construct (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)
 

Protected Attributes

Setting $settings
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopSettingsRepository::__construct ( Setting  $settings)

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

References $settings, and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ enableAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::enableAuthorsCanDelete ( bool  $active = true)

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

References ILIAS\Repository\settings().

58  : void
59  {
60  $this->settings->set('comments_del_user', $active ? '1' : '0');
61  }
+ Here is the call graph for this function:

◆ enableChatViewer()

ilPersonalDesktopSettingsRepository::enableChatViewer ( bool  $active = true)

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

References ILIAS\Repository\settings().

98  : void
99  {
100  $this->settings->set('block_activated_chatviewer', $active ? '1' : '0');
101  }
+ Here is the call graph for this function:

◆ enableComments()

ilPersonalDesktopSettingsRepository::enableComments ( bool  $active = true)

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

References ILIAS\Repository\settings().

48  : void
49  {
50  $this->settings->set('disable_comments', $active ? '0' : '1');
51  }
+ Here is the call graph for this function:

◆ enableForumDrafts()

ilPersonalDesktopSettingsRepository::enableForumDrafts ( bool  $active = true)

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

References ILIAS\Repository\settings().

118  : void
119  {
120  $this->settings->set('block_activated_pdfrmpostdraft', $active ? '1' : '0');
121  }
+ Here is the call graph for this function:

◆ enableLearningHistory()

ilPersonalDesktopSettingsRepository::enableLearningHistory ( bool  $active = true)

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

References ILIAS\Repository\settings().

88  : void
89  {
90  $this->settings->set('enable_learning_history', $active ? '1' : '0');
91  }
+ Here is the call graph for this function:

◆ enableNotes()

ilPersonalDesktopSettingsRepository::enableNotes ( bool  $active = true)

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

References ILIAS\Repository\settings().

38  : void
39  {
40  $this->settings->set('disable_notes', $active ? '0' : '1');
41  }
+ Here is the call graph for this function:

◆ enableTutorsCanDelete()

ilPersonalDesktopSettingsRepository::enableTutorsCanDelete ( bool  $active = true)

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

References ILIAS\Repository\settings().

68  : void
69  {
70  $this->settings->set('comments_del_tutor', $active ? '1' : '0');
71  }
+ Here is the call graph for this function:

◆ getCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::getCommentsNotificationRecipients ( )

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

References ILIAS\Repository\settings().

73  : string
74  {
75  return (string) $this->settings->get('comments_noti_recip');
76  }
+ Here is the call graph for this function:

◆ getSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::getSystemMessagePresentation ( )

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

References ILIAS\Repository\settings().

103  : int
104  {
105  return (int) $this->settings->get('pd_sys_msg_mode');
106  }
+ Here is the call graph for this function:

◆ ifAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::ifAuthorsCanDelete ( )

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

References ILIAS\Repository\settings().

53  : bool
54  {
55  return (bool) $this->settings->get('comments_del_user', '0');
56  }
+ Here is the call graph for this function:

◆ ifChatViewerEnabled()

ilPersonalDesktopSettingsRepository::ifChatViewerEnabled ( )

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

References ILIAS\Repository\settings().

93  : bool
94  {
95  return (bool) $this->settings->get('block_activated_chatviewer');
96  }
+ Here is the call graph for this function:

◆ ifCommentsEnabled()

ilPersonalDesktopSettingsRepository::ifCommentsEnabled ( )

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

References ILIAS\Repository\settings().

43  : bool
44  {
45  return !$this->settings->get('disable_comments');
46  }
+ Here is the call graph for this function:

◆ ifForumDrafts()

ilPersonalDesktopSettingsRepository::ifForumDrafts ( )

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

References ILIAS\Repository\settings().

113  : bool
114  {
115  return (bool) $this->settings->get('block_activated_pdfrmpostdraft', '0');
116  }
+ Here is the call graph for this function:

◆ ifLearningHistoryEnabled()

ilPersonalDesktopSettingsRepository::ifLearningHistoryEnabled ( )

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

References ILIAS\Repository\settings().

83  : bool
84  {
85  return (bool) $this->settings->get('enable_learning_history');
86  }
+ Here is the call graph for this function:

◆ ifNotesEnabled()

ilPersonalDesktopSettingsRepository::ifNotesEnabled ( )

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

References ILIAS\Repository\settings().

33  : bool
34  {
35  return !$this->settings->get('disable_notes');
36  }
+ Here is the call graph for this function:

◆ ifTutorsCanDelete()

ilPersonalDesktopSettingsRepository::ifTutorsCanDelete ( )

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

References ILIAS\Repository\settings().

63  : bool
64  {
65  return (bool) $this->settings->get('comments_del_tutor', '1');
66  }
+ Here is the call graph for this function:

◆ updateCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::updateCommentsNotificationRecipients ( string  $recipients)

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

References ILIAS\Repository\settings().

78  : void
79  {
80  $this->settings->set('comments_noti_recip', $recipients);
81  }
+ Here is the call graph for this function:

◆ updateSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::updateSystemMessagePresentation ( int  $mode)

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

References ILIAS\Repository\settings().

108  : void
109  {
110  $this->settings->set('pd_sys_msg_mode', (string) $mode);
111  }
+ Here is the call graph for this function:

Field Documentation

◆ $settings

Setting ilPersonalDesktopSettingsRepository::$settings
protected

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

Referenced by __construct().


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