ILIAS  release_8 Revision v8.24
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.

57 : void
58 {
59 $this->settings->set("comments_del_user", (int) $active);
60 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableChatViewer()

ilPersonalDesktopSettingsRepository::enableChatViewer ( bool  $active = true)

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

102 : void
103 {
104 $this->settings->set("block_activated_chatviewer", (int) $active);
105 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableComments()

ilPersonalDesktopSettingsRepository::enableComments ( bool  $active = true)

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

46 : void
47 {
48 $this->settings->set("disable_comments", (int) !$active);
49 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableForumDrafts()

ilPersonalDesktopSettingsRepository::enableForumDrafts ( bool  $active = true)

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

123 : void
124 {
125 $this->settings->set("block_activated_pdfrmpostdraft", (int) $active);
126 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableLearningHistory()

ilPersonalDesktopSettingsRepository::enableLearningHistory ( bool  $active = true)

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

91 : void
92 {
93 $this->settings->set("enable_learning_history", (int) $active);
94 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableNotes()

ilPersonalDesktopSettingsRepository::enableNotes ( bool  $active = true)

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

35 : void
36 {
37 $this->settings->set("disable_notes", (int) !$active);
38 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ enableTutorsCanDelete()

ilPersonalDesktopSettingsRepository::enableTutorsCanDelete ( bool  $active = true)

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

68 : void
69 {
70 $this->settings->set("comments_del_tutor", (int) $active);
71 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ getCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::getCommentsNotificationRecipients ( )

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

74 : string
75 {
76 return (string) $this->settings->get("comments_noti_recip");
77 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ getSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::getSystemMessagePresentation ( )

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

107 : int
108 {
109 return (int) $this->settings->get("pd_sys_msg_mode");
110 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::ifAuthorsCanDelete ( )

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

52 : bool
53 {
54 return (bool) $this->settings->get("comments_del_user", '0');
55 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifChatViewerEnabled()

ilPersonalDesktopSettingsRepository::ifChatViewerEnabled ( )

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

97 : bool
98 {
99 return (bool) $this->settings->get("block_activated_chatviewer");
100 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifCommentsEnabled()

ilPersonalDesktopSettingsRepository::ifCommentsEnabled ( )

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

41 : bool
42 {
43 return !$this->settings->get("disable_comments");
44 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifForumDrafts()

ilPersonalDesktopSettingsRepository::ifForumDrafts ( )

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

118 : bool
119 {
120 return (bool) $this->settings->get('block_activated_pdfrmpostdraft', '0');
121 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifLearningHistoryEnabled()

ilPersonalDesktopSettingsRepository::ifLearningHistoryEnabled ( )

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

86 : bool
87 {
88 return (bool) $this->settings->get("enable_learning_history");
89 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifNotesEnabled()

ilPersonalDesktopSettingsRepository::ifNotesEnabled ( )

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

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

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ ifTutorsCanDelete()

ilPersonalDesktopSettingsRepository::ifTutorsCanDelete ( )

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

63 : bool
64 {
65 return (bool) $this->settings->get("comments_del_tutor", '1');
66 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ updateCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::updateCommentsNotificationRecipients ( string  $recipients)

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

80 : void
81 {
82 $this->settings->set("comments_noti_recip", $recipients);
83 }

References ILIAS\Repository\settings().

+ Here is the call graph for this function:

◆ updateSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::updateSystemMessagePresentation ( int  $mode)

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

112 : void
113 {
114 $this->settings->set("pd_sys_msg_mode", $mode);
115 }

References ILIAS\Repository\settings().

+ 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: