47 $this->
lng->loadLanguageModule(
'chatroom');
59 $chatSettings =
new ilSetting(
'chatroom');
62 $chatSettings->get(
'chat_enabled',
'0') &&
63 $chatSettings->get(
'enable_osc',
'0') &&
64 !(
bool) $this->settings->get(
'usr_settings_hide_chat_osc_accept_msg',
'0')
70 $chatSettings =
new ilSetting(
'chatroom');
73 $chatSettings->get(
'chat_enabled',
'0') &&
74 !(
bool) $this->settings->get(
'usr_settings_hide_chat_broadcast_typing',
'0')
86 ? $lng->
txt(
"user_visibility_settings")
90 self::STEP_PROFILE_DATA =>
$lng->
txt(
"user_profile_data"),
91 self::STEP_PUBLISH_OPTIONS =>
$lng->
txt(
"user_publish_options"),
92 self::STEP_VISIBILITY_OPTIONS => $txt_visibility
103 $awrn_set->get(
"awrn_enabled",
'0') ||
105 $this->areOnScreenChatOptionsVisible() ||
106 $this->areChatTypingBroadcastOptionsVisible()
141 (!$this->anyVisibilitySettings() &&
$user->
getPref(
"profile_publish_opt_saved"))) {
161 if ($status == self::STATUS_SUCCESSFUL) {
169 if ($status == self::STATUS_SUCCESSFUL) {
170 $details = $this->profile_mode->getModeInfo();
177 if ($status == self::STATUS_SUCCESSFUL) {
180 if ($awrn_set->get(
"awrn_enabled",
'0')) {
181 $show = (
$user->
getPref(
"hide_own_online_status") ===
"n" ||
182 (
$user->
getPref(
"hide_own_online_status") ==
"" && $this->
settings->get(
"hide_own_online_status") ===
"n"));
184 ?
$lng->
txt(
"hide_own_online_status")
185 :
$lng->
txt(
"show_own_online_status");
188 $status[] = (
$user->
getPref(
"bs_allow_to_contact_me") !==
"y")
189 ?
$lng->
txt(
"buddy_allow_to_contact_me_no")
190 :
$lng->
txt(
"buddy_allow_to_contact_me_yes");
194 ? $lng->
txt(
"chat_use_osc")
195 :
$lng->
txt(
"chat_not_use_osc");
198 $status[] =
ilUtil::yn2tf((
string) $this->
user->getPref(
'chat_broadcast_typing'))
199 ? $lng->
txt(
"chat_use_typing_broadcast")
200 :
$lng->
txt(
"chat_no_use_typing_broadcast");
202 $details = implode(
",<br>", $status);
205 $details = $lng->
txt(
"user_set_visibilty_options");
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setPref(string $a_keyword, ?string $a_value)
getPref(string $a_keyword)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getStatusDetails(int $step)
Get status details.
__construct(?ilLanguage $lng=null, ?ilObjUser $user=null)
const STEP_VISIBILITY_OPTIONS
saveStepSucess(int $step)
Save step success.
anyVisibilitySettings()
Any visibility settings?
const STEP_PUBLISH_OPTIONS
areOnScreenChatOptionsVisible()
ilPersonalProfileMode $profile_mode
areChatTypingBroadcastOptionsVisible()
getStatus(int $step)
Get status of step.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static yn2tf(string $a_yn)