Stud.IP
6.0
|
Public Member Functions | |
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 = '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 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) |
Protected Attributes inherited from Avatar | |
const | CREATE_CHUNKED_FOLDERS = true |
const | NOBODY = 'nobody' |
$user_id | |
$username | |
This class represents the avatar of a course.
|
protected |
Return if avatar is visible to the current user.
|
protected |
Returns the CSS class to use for this avatar image.
string | one of the constants Avatar::(NORMAL|MEDIUM|SMALL) |
getDefaultTitle | ( | ) |
Return the default title of the avatar.
const AVATAR_TYPE = 'course' |