37 $this->lng = is_null(
$lng)
41 $this->
user = is_null($user)
61 ?
$lng->txt(
"user_visibility_settings")
62 :
$lng->txt(
"preview");
65 self::STEP_PROFILE_DATA =>
$lng->txt(
"user_profile_data"),
66 self::STEP_PUBLISH_OPTIONS =>
$lng->txt(
"user_publish_options"),
67 self::STEP_VISIBILITY_OPTIONS => $txt_visibility
79 if ($awrn_set->get(
"awrn_enabled",
false) ||
95 $status = self::STATUS_NOT_STARTED;
99 case self::STEP_PROFILE_DATA:
100 if ($user->getPref(
"profile_personal_data_saved")) {
101 $status = self::STATUS_SUCCESSFUL;
103 if ($user->getProfileIncomplete()) {
104 $status = self::STATUS_IN_PROGRESS;
107 case self::STEP_PUBLISH_OPTIONS:
108 if ($user->getPref(
"profile_publish_opt_saved")) {
109 $status = self::STATUS_SUCCESSFUL;
112 case self::STEP_VISIBILITY_OPTIONS:
113 if ($user->getPref(
"profile_visibility_opt_saved") ||
115 $status = self::STATUS_SUCCESSFUL;
136 case self::STEP_PROFILE_DATA:
137 if ($status == self::STATUS_SUCCESSFUL) {
138 $details =
$lng->txt(
"user_profile_data_checked");
140 $details =
$lng->txt(
"user_check_profile_data");
144 case self::STEP_PUBLISH_OPTIONS:
145 if ($status == self::STATUS_SUCCESSFUL) {
146 $details = $this->profile_mode->getModeInfo();
148 $details =
$lng->txt(
"user_set_publishing_options");
152 case self::STEP_VISIBILITY_OPTIONS:
153 if ($status == self::STATUS_SUCCESSFUL) {
156 if ($awrn_set->get(
"awrn_enabled",
false)) {
157 $show = ($user->getPref(
"hide_own_online_status") ==
"n" ||
158 ($user->getPref(
"hide_own_online_status") ==
"" && $this->
settings->get(
"hide_own_online_status") ==
"n"));
160 ?
$lng->txt(
"hide_own_online_status")
161 :
$lng->txt(
"show_own_online_status");
164 $status[] = ($user->getPref(
"bs_allow_to_contact_me") !=
"y")
165 ?
$lng->txt(
"buddy_allow_to_contact_me_no")
166 :
$lng->txt(
"buddy_allow_to_contact_me_yes");
168 $details = implode(
",<br>", $status);
171 $details =
$lng->txt(
"user_set_visibilty_options");
189 case self::STEP_PROFILE_DATA:
190 $user->setPref(
"profile_personal_data_saved",
"1");
192 case self::STEP_PUBLISH_OPTIONS:
193 $user->setPref(
"profile_publish_opt_saved",
"1");
195 case self::STEP_VISIBILITY_OPTIONS:
196 $user->setPref(
"profile_visibility_opt_saved",
"1");
saveStepSucess($step)
Save step success.
Personal profile publishing mode of a iser.
const STEP_PUBLISH_OPTIONS
anyVisibilitySettings()
Any visibility settings?
getStatusDetails(int $step)
Get status details.
const STEP_VISIBILITY_OPTIONS
getStatus(int $step)
Get status of step.
__construct($lng=null, $user=null)
Constructor.