ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPersonalDesktopSettingsRepository Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Collaboration diagram for ilPersonalDesktopSettingsRepository:

Public Member Functions

 __construct (\ILIAS\Administration\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

ILIAS Administration Setting $settings
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

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

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopSettingsRepository::__construct ( \ILIAS\Administration\Setting  $settings)

Definition at line 23 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 57 of file class.ilPersonalDesktopSettingsRepository.php.

References ILIAS\Repository\settings().

57  : void
58  {
59  $this->settings->set("comments_del_user", (int) $active);
60  }
+ Here is the call graph for this function:

◆ enableChatViewer()

ilPersonalDesktopSettingsRepository::enableChatViewer ( bool  $active = true)

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

References ILIAS\Repository\settings().

102  : void
103  {
104  $this->settings->set("block_activated_chatviewer", (int) $active);
105  }
+ Here is the call graph for this function:

◆ enableComments()

ilPersonalDesktopSettingsRepository::enableComments ( bool  $active = true)

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

References ILIAS\Repository\settings().

46  : void
47  {
48  $this->settings->set("disable_comments", (int) !$active);
49  }
+ Here is the call graph for this function:

◆ enableForumDrafts()

ilPersonalDesktopSettingsRepository::enableForumDrafts ( bool  $active = true)

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

References ILIAS\Repository\settings().

123  : void
124  {
125  $this->settings->set("block_activated_pdfrmpostdraft", (int) $active);
126  }
+ Here is the call graph for this function:

◆ enableLearningHistory()

ilPersonalDesktopSettingsRepository::enableLearningHistory ( bool  $active = true)

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

References ILIAS\Repository\settings().

91  : void
92  {
93  $this->settings->set("enable_learning_history", (int) $active);
94  }
+ Here is the call graph for this function:

◆ enableNotes()

ilPersonalDesktopSettingsRepository::enableNotes ( bool  $active = true)

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

References ILIAS\Repository\settings().

35  : void
36  {
37  $this->settings->set("disable_notes", (int) !$active);
38  }
+ 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", (int) $active);
71  }
+ Here is the call graph for this function:

◆ getCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::getCommentsNotificationRecipients ( )

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

References ILIAS\Repository\settings().

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

◆ getSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::getSystemMessagePresentation ( )

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

References ILIAS\Repository\settings().

107  : int
108  {
109  return (int) $this->settings->get("pd_sys_msg_mode");
110  }
+ Here is the call graph for this function:

◆ ifAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::ifAuthorsCanDelete ( )

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

References ILIAS\Repository\settings().

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

◆ ifChatViewerEnabled()

ilPersonalDesktopSettingsRepository::ifChatViewerEnabled ( )

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

References ILIAS\Repository\settings().

97  : bool
98  {
99  return (bool) $this->settings->get("block_activated_chatviewer");
100  }
+ Here is the call graph for this function:

◆ ifCommentsEnabled()

ilPersonalDesktopSettingsRepository::ifCommentsEnabled ( )

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

References ILIAS\Repository\settings().

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

◆ ifForumDrafts()

ilPersonalDesktopSettingsRepository::ifForumDrafts ( )

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

References ILIAS\Repository\settings().

118  : bool
119  {
120  return (bool) $this->settings->get('block_activated_pdfrmpostdraft', '0');
121  }
+ Here is the call graph for this function:

◆ ifLearningHistoryEnabled()

ilPersonalDesktopSettingsRepository::ifLearningHistoryEnabled ( )

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

References ILIAS\Repository\settings().

86  : bool
87  {
88  return (bool) $this->settings->get("enable_learning_history");
89  }
+ Here is the call graph for this function:

◆ ifNotesEnabled()

ilPersonalDesktopSettingsRepository::ifNotesEnabled ( )

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

References ILIAS\Repository\settings().

30  : bool
31  {
32  return !$this->settings->get("disable_notes");
33  }
+ 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 80 of file class.ilPersonalDesktopSettingsRepository.php.

References ILIAS\Repository\settings().

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

◆ updateSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::updateSystemMessagePresentation ( int  $mode)

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

References ILIAS\Repository\settings().

112  : void
113  {
114  $this->settings->set("pd_sys_msg_mode", $mode);
115  }
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ILIAS Administration Setting ilPersonalDesktopSettingsRepository::$settings
protected

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

Referenced by __construct().


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