19declare(strict_types=1);
51 OrganisationalUnits::class,
58 protected UserProfile $user_profile,
60 protected DataFactory $data_factory
66 $fields = $this->user_profile->getFields(
68 self::EXCLUDED_EXTRA_FIELDS
82 $login = $user->getLogin();
83 $avatar_path = $user->getPersonalPicturePath();
87 foreach ($fields as $field) {
88 if (!$field->isPublishedByUser($user)) {
105 $this->
ctrl->setParameterByClass(ilLuceneUserSearchGUI::class,
'user_id',
$user_id);
106 $ctrl_target = $this->
ctrl->getLinkTargetByClass(
107 [ilSearchControllerGUI::class, ilLuceneUserSearchGUI::class, PublicProfileGUI::class],
110 $this->
ctrl->clearParameterByClass(ilLuceneUserSearchGUI::class,
'user_id');
111 return $this->data_factory->uri(
112 rtrim(ILIAS_HTTP_PATH,
'/') .
'/' . $ctrl_target
125 return $presentable_date;
129 return $this->
lng->txt(
'gender_' . $value);
132 return is_array($value) ? implode(
', ', $value) : (string) $value;
The scope of this class is split ilias-conform URI's into components.
buildProfileLink(int $user_id)
__construct(protected ilLanguage $lng, protected UserProfile $user_profile, protected ilCtrlInterface $ctrl, protected DataFactory $data_factory)
fetchForUser(int $user_id, Field ... $fields)
fetchForUsers(int ... $user_ids)
getPresentableFieldValueForUser(Field $field, ilObjUser $user)
const array EXCLUDED_EXTRA_FIELDS
retrieveValueFromUser(\ilObjUser $user)
GUI class for public user profile presentation.
Class for date presentation.
static useRelativeDates()
static setUseRelativeDates(bool $a_status)
set use relative dates
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path=null)
Default behaviour is:
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...