ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
|
Class ilUserAvatarResolver. More...
Public Member Functions | |
__construct (private int $user_id) | |
hasProfilePicture () | |
getAvatar (bool $name_as_set_as_text_closely=false) | |
getUserPictureForVCard () | |
getLegacyPictureURL () | |
This method returns the URL to the Profile Picture of a User. More... | |
setForcePicture (bool $force_image) | |
There are places where we want wo show the Profile Picture of a User, even if the user doesn't want to show it. More... | |
setSize (string $size) | |
There are the Sizes 'big', 'small', 'xsmall', 'xxsmall',. More... | |
Private Member Functions | |
readUserSettings () | |
resolveProfilePicturePath () | |
Private Attributes | |
ilDBInterface | $db |
ILIAS ResourceStorage Services | $irss |
Factory | $ui |
Language | $lng |
bool | $letter_avatars_activated |
ilUserProfilePictureDefinition | $flavour_definition |
string | $size |
bool | $is_current_user |
ilObjUser | $for_user |
bool | $has_public_upload = false |
bool | $has_public_profile = false |
ilUserAvatarFactory | $avatar_factory |
string | $abbreviation = '' |
string | $rid = null |
bool | $force_image = false |
Class ilUserAvatarResolver.
Definition at line 29 of file class.ilUserAvatarResolver.php.
ilUserAvatarResolver::__construct | ( | private int | $user_id | ) |
Definition at line 47 of file class.ilUserAvatarResolver.php.
References $DIC, $user_id, ILIAS\Repository\lng(), readUserSettings(), and ILIAS\Repository\ui().
ilUserAvatarResolver::getAvatar | ( | bool | $name_as_set_as_text_closely = false | ) |
bool | $name_as_set_as_text_closely | if the name is set as text close to the Avatar, the alternative text for screenreaders will be set differently, to reduce redundancy for screenreaders. See rules on the Avatar Symbol in the UI Components |
Definition at line 134 of file class.ilUserAvatarResolver.php.
References ilUtil\getImagePath(), getLegacyPictureURL(), hasProfilePicture(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
ilUserAvatarResolver::getLegacyPictureURL | ( | ) |
This method returns the URL to the Profile Picture of a User.
Depending on Settings and the Availability of a Prodile Picture, there's a Fallback to the Letter Avatar as well (as data-URL).
Definition at line 193 of file class.ilUserAvatarResolver.php.
References hasProfilePicture(), null, and resolveProfilePicturePath().
Referenced by getAvatar().
ilUserAvatarResolver::getUserPictureForVCard | ( | ) |
Definition at line 163 of file class.ilUserAvatarResolver.php.
References $size, hasProfilePicture(), and null.
ilUserAvatarResolver::hasProfilePicture | ( | ) |
Definition at line 99 of file class.ilUserAvatarResolver.php.
References null.
Referenced by getAvatar(), getLegacyPictureURL(), and getUserPictureForVCard().
|
private |
Definition at line 66 of file class.ilUserAvatarResolver.php.
References $res, null, and ilStr\subStr().
Referenced by __construct().
|
private |
Definition at line 114 of file class.ilUserAvatarResolver.php.
Referenced by getLegacyPictureURL().
ilUserAvatarResolver::setForcePicture | ( | bool | $force_image | ) |
There are places where we want wo show the Profile Picture of a User, even if the user doesn't want to show it.
(e.g. in Administration)
Definition at line 212 of file class.ilUserAvatarResolver.php.
References $force_image.
ilUserAvatarResolver::setSize | ( | string | $size | ) |
There are the Sizes 'big', 'small', 'xsmall', 'xxsmall',.
Definition at line 220 of file class.ilUserAvatarResolver.php.
References $size.
|
private |
Definition at line 43 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 42 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 31 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 36 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 39 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 45 of file class.ilUserAvatarResolver.php.
Referenced by setForcePicture().
|
private |
Definition at line 41 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 40 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 32 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 38 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 35 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 34 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 44 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 37 of file class.ilUserAvatarResolver.php.
Referenced by getUserPictureForVCard(), resolveProfilePicturePath(), and setSize().
|
private |
Definition at line 33 of file class.ilUserAvatarResolver.php.