19declare(strict_types=1);
44 $public_profile_pref = $this->
user->getPref(
'public_profile');
45 if ($public_profile_pref ===
null
49 self::PROFILE_ENABLED_LOGGED_IN_USERS,
50 self::PROFILE_ENABLED_GLOBAL
56 if ($this->
settings->get(
'enable_global_profiles')) {
57 return $public_profile_pref;
67 self::PROFILE_ENABLED_LOGGED_IN_USERS,
68 self::PROFILE_ENABLED_GLOBAL
77 return $this->
lng->txt(
'usr_public_profile_disabled');
79 return $this->
lng->txt(
'usr_public_profile_logged_in');
81 return $this->
lng->txt(
'usr_public_profile_global');
Personal profile publishing mode of a user.
const PROFILE_ENABLED_GLOBAL
getModeInfo(?string $mode=null)
const PROFILE_ENABLED_LOGGED_IN_USERS
__construct(private readonly Language $lng, private readonly \ilSetting $settings, private readonly \ilObjUser $user)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...