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