Stud.IP
5.4
|
Public Member Functions | |
getAvatarDirectoryUrl () | |
getAvatarDirectoryPath () | |
getImageTag ($size=Avatar::MEDIUM, $opt=[]) | |
getDefaultTitle () | |
![]() | |
getAvatarDirectoryUrl () | |
getAvatarDirectoryPath () | |
getCustomAvatarUrl ($size, $ext= 'png') | |
getCustomAvatarPath ($size, $ext= 'png', $retina=false) | |
getFilename ($size, $ext= 'png') | |
getURL ($size, $ext= 'png') | |
is_customized () | |
getImageTag ($size=Avatar::MEDIUM, $opt=[]) | |
createFromUpload ($userfile) | |
createFrom ($filename) | |
reset () | |
getDefaultTitle () | |
Static Public Member Functions | |
static | getAvatar ($id) |
static | getNobody () |
static | getDimension ($size) |
![]() | |
static | getAvatar ($id) |
static | getNobody () |
static | getDimension ($size) |
static | error_handler ($errno, $errstr, $errfile, $errline) |
Protected Member Functions | |
getCssClass ($size) | |
checkAvatarVisibility () | |
![]() | |
__construct ($user_id, $username=null) | |
getCssClass ($size) | |
checkAvatarVisibility () | |
sanitizeOrientation ($filename) | |
Additional Inherited Members | |
![]() | |
const | ORIGINAL = 'original' |
const | NORMAL = 'normal' |
const | MEDIUM = 'medium' |
const | SMALL = 'small' |
const | MAX_FILE_SIZE = 10485760 |
const | NOBODY = 'nobody' |
![]() | |
$user_id | |
$username | |
This class represents the image-picture of a license.
|
protected |
Return if avatar is visible to the current user.
|
static |
Returns an avatar object of the appropriate class.
string | the course's id |
getAvatarDirectoryPath | ( | ) |
Returns the file system path to the courses' avatars
getAvatarDirectoryUrl | ( | ) |
Returns the URL to the courses' avatars.
|
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.
|
static |
Return the dimension of a size
string | the dimension of a size |
getImageTag | ( | $size = Avatar::MEDIUM , |
|
$opt = [] |
|||
) |
|
static |
Returns an avatar object for "nobody".