19declare(strict_types=1);
40 if ($this->
profile->exists($user_id)) {
43 $avatar = $this->ui_factory->symbol()->avatar()->letter($this->
profile->getDeletedUserAvatarText());
52 if ($this->
profile->exists($user_id)) {
53 return \ilObjUser::_getPersonalPicturePath(
$user_id,
"xsmall",
true,
true);
55 $fac = new \ilUserAvatarFactory(
$DIC);
56 $avatar = $fac->avatar(
"xsmall");
57 $avatar->setName(substr($this->
profile->getDeletedUserAvatarText(), 0, 2));
59 return $avatar->getUrl();
64 if ($this->
profile->exists($user_id)) {
67 $name = $this->
profile->getDeletedUserNamePresentation();
getPicturePath(int $user_id)
ILIAS UI Factory $ui_factory
__construct(ProfileAdapter $profile, \ILIAS\UI\Factory $ui_factory)
getNamePresentation(int $user_id, bool $link_profile=false, string $back="", $force_first_last=false)
static _getAvatar(int $a_usr_id)
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 describes how a letter or a picture avatar could be modified during construction of UI.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.