43         $this->
lng = is_null($lng)
    47         $this->
lng->loadLanguageModule(
'chatroom');
    48         $this->
user = is_null($user)
    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")
    87             : $lng->
txt(
"preview");
    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') ||
   119         $status = self::STATUS_NOT_STARTED;
   123             case self::STEP_PROFILE_DATA:
   124                 if ($user->
getPref(
"profile_personal_data_saved")) {
   125                     $status = self::STATUS_SUCCESSFUL;
   129                     $status = self::STATUS_IN_PROGRESS;
   133             case self::STEP_PUBLISH_OPTIONS:
   134                 if ($user->
getPref(
"profile_publish_opt_saved")) {
   135                     $status = self::STATUS_SUCCESSFUL;
   139             case self::STEP_VISIBILITY_OPTIONS:
   140                 if ($user->
getPref(
"profile_visibility_opt_saved") ||
   142                     $status = self::STATUS_SUCCESSFUL;
   160             case self::STEP_PROFILE_DATA:
   161                 if ($status == self::STATUS_SUCCESSFUL) {
   168             case self::STEP_PUBLISH_OPTIONS:
   169                 if ($status == self::STATUS_SUCCESSFUL) {
   170                     $details = $this->profile_mode->getModeInfo();
   172                     $details = $lng->
txt(
"user_set_publishing_options");
   176             case self::STEP_VISIBILITY_OPTIONS:
   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");
   221             case self::STEP_PROFILE_DATA:
   222                 $user->
setPref(
"profile_personal_data_saved", 
"1");
   224             case self::STEP_PUBLISH_OPTIONS:
   225                 $user->
setPref(
"profile_publish_opt_saved", 
"1");
   227             case self::STEP_VISIBILITY_OPTIONS:
   228                 $user->
setPref(
"profile_visibility_opt_saved", 
"1");
 saveStepSucess(int $step)
Save step success. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
areChatTypingBroadcastOptionsVisible()
 
const STEP_PUBLISH_OPTIONS
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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...
 
__construct(?ilLanguage $lng=null, ?ilObjUser $user=null)
 
anyVisibilitySettings()
Any visibility settings? 
 
getStatusDetails(int $step)
Get status details. 
 
const STEP_VISIBILITY_OPTIONS
 
ilPersonalProfileMode $profile_mode
 
getPref(string $a_keyword)
 
areOnScreenChatOptionsVisible()
 
setPref(string $a_keyword, ?string $a_value)
 
getStatus(int $step)
Get status of step. 
 
static yn2tf(string $a_yn)