|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
Class ilUserAvatarResolver. More...
Collaboration diagram for ilUserAvatarResolver: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 () | |
| resolveLegacyPicturePath () | |
| resolveProfilePicturePath () | |
Private Attributes | |
| ilDBInterface | $db |
| ILIAS ResourceStorage Services | $irss |
| Factory | $ui |
| ilLanguage | $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 28 of file class.ilUserAvatarResolver.php.
| ilUserAvatarResolver::__construct | ( | private int | $user_id | ) |
Definition at line 46 of file class.ilUserAvatarResolver.php.
References $DIC, ILIAS\Repository\lng(), readUserSettings(), and ILIAS\Repository\ui().
Here is the call graph for this function:| 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 142 of file class.ilUserAvatarResolver.php.
References ilUtil\getImagePath(), getLegacyPictureURL(), hasProfilePicture(), ILIAS\Repository\lng(), and ILIAS\Repository\ui().
Here is the call graph for this function:| 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 215 of file class.ilUserAvatarResolver.php.
References hasProfilePicture(), resolveLegacyPicturePath(), resolveProfilePicturePath(), and ilWACSignedPath\signFile().
Referenced by getAvatar().
Here is the call graph for this function:
Here is the caller graph for this function:| ilUserAvatarResolver::getUserPictureForVCard | ( | ) |
Definition at line 171 of file class.ilUserAvatarResolver.php.
References $size, ilObjMediaObject\getMimeType(), hasProfilePicture(), and resolveLegacyPicturePath().
Here is the call graph for this function:| ilUserAvatarResolver::hasProfilePicture | ( | ) |
Definition at line 98 of file class.ilUserAvatarResolver.php.
References resolveLegacyPicturePath().
Referenced by getAvatar(), getLegacyPictureURL(), and getUserPictureForVCard().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 65 of file class.ilUserAvatarResolver.php.
References $res, and ilStr\subStr().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 114 of file class.ilUserAvatarResolver.php.
References ilFileUtils\getWebspaceDir().
Referenced by getLegacyPictureURL(), getUserPictureForVCard(), and hasProfilePicture().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 122 of file class.ilUserAvatarResolver.php.
References $size.
Referenced by getLegacyPictureURL().
Here is the caller graph for this function:| 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 238 of file class.ilUserAvatarResolver.php.
References $force_image.
| ilUserAvatarResolver::setSize | ( | string | $size | ) |
There are the Sizes 'big', 'small', 'xsmall', 'xxsmall',.
Definition at line 246 of file class.ilUserAvatarResolver.php.
References $size.
|
private |
Definition at line 42 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 41 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 30 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 35 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 38 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 44 of file class.ilUserAvatarResolver.php.
Referenced by setForcePicture().
|
private |
Definition at line 40 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 39 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 31 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 37 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 34 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 33 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 43 of file class.ilUserAvatarResolver.php.
|
private |
Definition at line 36 of file class.ilUserAvatarResolver.php.
Referenced by getUserPictureForVCard(), resolveProfilePicturePath(), and setSize().
|
private |
Definition at line 32 of file class.ilUserAvatarResolver.php.