|
Stud.IP
6.1
|
Public Member Functions | |
| getDefaultTitle () | |
Public Member Functions inherited from CourseAvatar | |
| getDefaultTitle () | |
Public Member Functions inherited from Avatar | |
| getAvatarDirectoryUrl () | |
| getAvatarDirectoryPath () | |
| getDefaultAvatarDirectoryUrl () | |
| getDefaultAvatarDirectoryPath () | |
| getCustomAvatarUrl ($size) | |
| getCustomAvatarPath ($size) | |
| getFilename ($size) | |
| getURL ($size) | |
| isNobody () | |
| customizedFileExists () | |
| is_customized () | |
| getImageTag ($size=self::MEDIUM, $opt=[]) | |
| createFromUpload ($userfile) | |
| createFrom ($filename) | |
| reset () | |
| getDefaultTitle () | |
| getId () | |
Data Fields | |
| const | AVATAR_TYPE = 'institute' |
Data Fields inherited from CourseAvatar | |
| const | AVATAR_TYPE = 'course' |
Data Fields inherited from Avatar | |
| const | AVATAR_TYPE = 'user' |
| const | EXTENSION = 'webp' |
| const | IMAGE_QUALITY = 90 |
| const | ORIGINAL = 'original' |
| const | NORMAL = 'normal' |
| const | MEDIUM = 'medium' |
| const | SMALL = 'small' |
| const | MAX_FILE_SIZE = 10485760 |
Protected Member Functions | |
| getCssClass ($size) | |
| checkAvatarVisibility () | |
Protected Member Functions inherited from CourseAvatar | |
| getCssClass ($size) | |
| checkAvatarVisibility () | |
Protected Member Functions inherited from Avatar | |
| __construct ($user_id, $username=null) | |
| getCssClass ($size) | |
| checkAvatarVisibility () | |
| sanitizeOrientation ($filename) | |
Additional Inherited Members | |
Static Public Member Functions inherited from Avatar | |
| static | getAvatar ($id) |
| static | getNobody () |
| static | getDimension ($size) |
| static | error_handler ($errno, $errstr, $errfile, $errline) |
| static | getAvatarDropdownHTML (User $user, bool $with_name=false) |
Protected Attributes inherited from Avatar | |
| const | CREATE_CHUNKED_FOLDERS = true |
| const | NOBODY = 'nobody' |
| $user_id | |
| $username | |
This class represents the avatar of a institute.
|
protected |
Return if avatar is visible to the current user.
|
protected |
Returns the CSS class to use for this avatar image.
| string | $size | one of the constants Avatar::(NORMAL|MEDIUM|SMALL) |
| getDefaultTitle | ( | ) |
Return the default title of the avatar.
| const AVATAR_TYPE = 'institute' |