19declare(strict_types=1);
31 return !$this->
settings->get(
'disable_notes');
36 $this->
settings->set(
'disable_notes', $active ?
'0' :
'1');
41 return !$this->
settings->get(
'disable_comments');
46 $this->
settings->set(
'disable_comments', $active ?
'0' :
'1');
51 return (
bool) $this->
settings->get(
'comments_del_user',
'0');
56 $this->
settings->set(
'comments_del_user', $active ?
'1' :
'0');
61 return (
bool) $this->
settings->get(
'comments_del_tutor',
'1');
66 $this->
settings->set(
'comments_del_tutor', $active ?
'1' :
'0');
71 return (
string) $this->
settings->get(
'comments_noti_recip');
76 $this->
settings->set(
'comments_noti_recip', $recipients);
81 return (
bool) $this->
settings->get(
'enable_learning_history');
86 $this->
settings->set(
'enable_learning_history', $active ?
'1' :
'0');
91 return (
bool) $this->
settings->get(
'block_activated_chatviewer');
96 $this->
settings->set(
'block_activated_chatviewer', $active ?
'1' :
'0');
101 return (
int) $this->
settings->get(
'pd_sys_msg_mode');
106 $this->
settings->set(
'pd_sys_msg_mode', (
string) $mode);
111 return (
bool) $this->
settings->get(
'block_activated_pdfrmpostdraft',
'0');
116 $this->
settings->set(
'block_activated_pdfrmpostdraft', $active ?
'1' :
'0');
ifLearningHistoryEnabled()
enableChatViewer(bool $active=true)
enableAuthorsCanDelete(bool $active=true)
getCommentsNotificationRecipients()
enableLearningHistory(bool $active=true)
getSystemMessagePresentation()
updateCommentsNotificationRecipients(string $recipients)
__construct(protected readonly Setting $settings)
enableForumDrafts(bool $active=true)
enableComments(bool $active=true)
enableNotes(bool $active=true)
enableTutorsCanDelete(bool $active=true)
updateSystemMessagePresentation(int $mode)