Stud.IP
2.0 Revision 48548
|
Public Member Functions | |
getAvatarDirectoryUrl () | |
getAvatarDirectoryPath () | |
getDimension ($size) | |
getDefaultTitle () | |
Public Member Functions inherited from Avatar | |
getCustomAvatarUrl ($size, $ext= 'png') | |
getCustomAvatarPath ($size, $ext= 'png') | |
getFilename ($size, $ext= 'png') | |
getURL ($size, $ext= 'png') | |
is_customized () | |
getImageTag ($size=Avatar::MEDIUM, $opt=array()) | |
createFromUpload ($userfile) | |
createFrom ($filename) | |
reset () |
Static Public Member Functions | |
static | getAvatar ($course_id) |
static | getNobody () |
Static Public Member Functions inherited from Avatar | |
static | getAvatar ($user_id, $username=NULL) |
static | error_handler ($errno, $errstr, $errfile, $errline) |
Protected Member Functions | |
getCssClass ($size) | |
Protected Member Functions inherited from Avatar | |
__construct ($user_id, $username=NULL) |
Additional Inherited Members | |
Data Fields inherited from Avatar | |
const | NORMAL = 'normal' |
const | MEDIUM = 'medium' |
const | SMALL = 'small' |
const | MAX_FILE_SIZE = 716800 |
const | NOBODY = 'nobody' |
Protected Attributes inherited from Avatar | |
$user_id | |
$username |
|
static |
Returns an avatar object of the appropriate class.
string | the course's id |
Reimplemented in InstituteAvatar, and StudygroupAvatar.
getAvatarDirectoryPath | ( | ) |
Returns the file system path to the courses' avatars
Reimplemented from Avatar.
Reimplemented in InstituteAvatar.
getAvatarDirectoryUrl | ( | ) |
Returns the URL to the courses' avatars.
Reimplemented from Avatar.
Reimplemented in InstituteAvatar.
|
protected |
getDefaultTitle | ( | ) |
Return the default title of the avatar.
Reimplemented from Avatar.
Reimplemented in InstituteAvatar.
getDimension | ( | $size | ) |
Return the dimension of a size
string | the dimension of a size |
Reimplemented from Avatar.
|
static |
Returns an avatar object for "nobody".
Reimplemented from Avatar.
Reimplemented in InstituteAvatar, and StudygroupAvatar.