38 $this->lng =
$DIC->language();
53 $pub_prof = in_array(
$user->prefs[
"public_profile"], [
54 self::PROFILE_DISABLED,
55 self::PROFILE_ENABLED_LOGGED_IN_USERS,
56 self::PROFILE_ENABLED_GLOBAL
58 ?
$user->prefs[
"public_profile"]
60 if (!
$settings->get(
'enable_global_profiles') && $pub_prof == self::PROFILE_ENABLED_GLOBAL) {
73 return in_array($this->
getMode(), [self::PROFILE_ENABLED_LOGGED_IN_USERS,
74 self::PROFILE_ENABLED_GLOBAL
93 return $lng->txt(
"usr_public_profile_disabled");
96 return $lng->txt(
"usr_public_profile_logged_in");
99 return $lng->txt(
"usr_public_profile_global");
An exception for terminatinating execution or to throw for unit testing.
Personal profile publishing mode of a iser.
const PROFILE_ENABLED_LOGGED_IN_USERS
getModeInfo(string $mode=null)
Get mode info.
__construct(ilObjUser $user, ilSetting $settings)
Constructor.
const PROFILE_ENABLED_GLOBAL
isEnabled()
Is profile enabled.