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) ||
100 if ($user->getPref(
"profile_personal_data_saved")) {
103 if ($user->getProfileIncomplete()) {
108 if ($user->getPref(
"profile_publish_opt_saved")) {
113 if ($user->getPref(
"profile_visibility_opt_saved") ||
114 (!$this->anyVisibilitySettings() && $user->getPref(
"profile_publish_opt_saved"))) {
137 if ($status == self::STATUS_SUCCESSFUL) {
138 $details =
$lng->txt(
"user_profile_data_checked");
140 $details =
$lng->txt(
"user_check_profile_data");
145 if ($status == self::STATUS_SUCCESSFUL) {
146 $details = $this->profile_mode->getModeInfo();
148 $details =
$lng->txt(
"user_set_publishing_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");
190 $user->setPref(
"profile_personal_data_saved",
"1");
193 $user->setPref(
"profile_publish_opt_saved",
"1");
196 $user->setPref(
"profile_visibility_opt_saved",
"1");
An exception for terminatinating execution or to throw for unit testing.
Personal profile publishing mode of a iser.
getStatusDetails(int $step)
Get status details.
const STEP_VISIBILITY_OPTIONS
anyVisibilitySettings()
Any visibility settings?
const STEP_PUBLISH_OPTIONS
saveStepSucess($step)
Save step success.
__construct($lng=null, $user=null)
Constructor.
getStatus(int $step)
Get status of step.