ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPersonalDesktopSettingsRepository Class Reference

Personal desktop settings repo. More...

+ Collaboration diagram for ilPersonalDesktopSettingsRepository:

Public Member Functions

 __construct (ilSetting $settings)
 Constructor. More...
 

Protected Member Functions

 ifNotesEnabled ()
 Notes enabled? More...
 
 enableNotes (bool $active=true)
 Enable notes. More...
 
 ifCommentsEnabled ()
 Comments enabled? More...
 
 enableComments (bool $active=true)
 Enable comments. More...
 
 ifAuthorsCanDelete ()
 Can authors delete their comments. More...
 
 enableAuthorsCanDelete (bool $active=true)
 Enable authors delete their comments. More...
 
 ifTutorsCanDelete ()
 Can tutors delete comments of others. More...
 
 enableTutorsCanDelete (bool $active=true)
 Enable tutors delete comments of others. More...
 
 getCommentsNotificationRecipients ()
 Get recipients of comments notification. More...
 
 updateCommentsNotificationRecipients (string $recipients)
 Update recipients of comments notification. More...
 
 ifLearningHistoryEnabled ()
 learning history enabled? More...
 
 enableLearningHistory (bool $active=true)
 Enable learning history. More...
 
 ifChatViewerEnabled ()
 chat viewer enabled? More...
 
 enableChatViewer (bool $active=true)
 Enable chat viewer. More...
 
 getSystemMessagePresentation ()
 Get system message presentation. More...
 
 updateSystemMessagePresentation (int $mode)
 Update system message presentation. More...
 
 ifForumDrafts ()
 forum draft block enabled? More...
 
 enableForumDrafts (bool $active=true)
 Enable forum draft block. More...
 

Protected Attributes

 $settings
 

Detailed Description

Personal desktop settings repo.

Author
.de

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

Constructor & Destructor Documentation

◆ __construct()

ilPersonalDesktopSettingsRepository::__construct ( ilSetting  $settings)

Constructor.

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

References $settings, and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ enableAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::enableAuthorsCanDelete ( bool  $active = true)
protected

Enable authors delete their comments.

Parameters
bool$active

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

References settings().

83  {
84  $this->settings->set("comments_del_user", (int) $active);
85  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableChatViewer()

ilPersonalDesktopSettingsRepository::enableChatViewer ( bool  $active = true)
protected

Enable chat viewer.

Parameters
bool$active

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

References settings().

163  {
164  $this->settings->set("block_activated_chatviewer", (int) $active);
165  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableComments()

ilPersonalDesktopSettingsRepository::enableComments ( bool  $active = true)
protected

Enable comments.

Parameters
bool$active

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

References settings().

63  {
64  $this->settings->set("disable_comments", (int) !$active);
65  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableForumDrafts()

ilPersonalDesktopSettingsRepository::enableForumDrafts ( bool  $active = true)
protected

Enable forum draft block.

Parameters
bool$active

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

References settings().

203  {
204  $this->settings->set("block_activated_pdfrmpostdraft", (int) $active);
205  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableLearningHistory()

ilPersonalDesktopSettingsRepository::enableLearningHistory ( bool  $active = true)
protected

Enable learning history.

Parameters
bool$active

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

References settings().

143  {
144  $this->settings->set("enable_learning_history", (int) $active);
145  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableNotes()

ilPersonalDesktopSettingsRepository::enableNotes ( bool  $active = true)
protected

Enable notes.

Parameters
bool$active

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

References settings().

43  {
44  $this->settings->set("disable_notes", (int) !$active);
45  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ enableTutorsCanDelete()

ilPersonalDesktopSettingsRepository::enableTutorsCanDelete ( bool  $active = true)
protected

Enable tutors delete comments of others.

Parameters
bool$active

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

References settings().

103  {
104  $this->settings->set("comments_del_tutor", (int) $active);
105  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ getCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::getCommentsNotificationRecipients ( )
protected

Get recipients of comments notification.

Returns
bool

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

References settings().

113  {
114  return (string) $this->settings->get("comments_noti_recip");
115  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ getSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::getSystemMessagePresentation ( )
protected

Get system message presentation.

Returns
int

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

References settings().

173  {
174  return (int) $this->settings->get("pd_sys_msg_mode");
175  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifAuthorsCanDelete()

ilPersonalDesktopSettingsRepository::ifAuthorsCanDelete ( )
protected

Can authors delete their comments.

Returns
bool

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

References settings().

73  {
74  return (bool) $this->settings->get("comments_del_user", 0);
75  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifChatViewerEnabled()

ilPersonalDesktopSettingsRepository::ifChatViewerEnabled ( )
protected

chat viewer enabled?

Returns
bool

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

References settings().

153  {
154  return (bool) $this->settings->get("block_activated_chatviewer");
155  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifCommentsEnabled()

ilPersonalDesktopSettingsRepository::ifCommentsEnabled ( )
protected

Comments enabled?

Returns
bool

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

References settings().

53  {
54  return (bool) !$this->settings->get("disable_comments");
55  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifForumDrafts()

ilPersonalDesktopSettingsRepository::ifForumDrafts ( )
protected

forum draft block enabled?

Returns
bool

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

References settings().

193  {
194  return (bool) $this->settings->get('block_activated_pdfrmpostdraft', 0);
195  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifLearningHistoryEnabled()

ilPersonalDesktopSettingsRepository::ifLearningHistoryEnabled ( )
protected

learning history enabled?

Returns
bool

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

References settings().

133  {
134  return (bool) $this->settings->get("enable_learning_history");
135  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifNotesEnabled()

ilPersonalDesktopSettingsRepository::ifNotesEnabled ( )
protected

Notes enabled?

Returns
bool

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

References settings().

33  {
34  return (bool) !$this->settings->get("disable_notes");
35  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ ifTutorsCanDelete()

ilPersonalDesktopSettingsRepository::ifTutorsCanDelete ( )
protected

Can tutors delete comments of others.

Returns
bool

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

References settings().

93  {
94  return (bool) $this->settings->get("comments_del_tutor", 1);
95  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ updateCommentsNotificationRecipients()

ilPersonalDesktopSettingsRepository::updateCommentsNotificationRecipients ( string  $recipients)
protected

Update recipients of comments notification.

Parameters
string$recipients

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

References settings().

123  {
124  $this->settings->set("comments_noti_recip", $recipients);
125  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

◆ updateSystemMessagePresentation()

ilPersonalDesktopSettingsRepository::updateSystemMessagePresentation ( int  $mode)
protected

Update system message presentation.

Parameters
int$mode

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

References settings().

183  {
184  $this->settings->set("pd_sys_msg_mode", $mode);
185  }
settings()
Definition: settings.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $settings

ilPersonalDesktopSettingsRepository::$settings
protected

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

Referenced by __construct().


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