Stud.IP  5.4
StudygroupAvatar Class Reference
Inheritance diagram for StudygroupAvatar:
CourseAvatar Avatar

Protected Attributes

const NOBODY = 'studygroup'
 
- Protected Attributes inherited from Avatar
const CREATE_CHUNKED_FOLDERS = true
 
const NOBODY = 'nobody'
 
 $user_id
 
 $username
 

Additional Inherited Members

- 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 ()
 
- Static Public Member Functions inherited from Avatar
static getAvatar ($id)
 
static getNobody ()
 
static getDimension ($size)
 
static error_handler ($errno, $errstr, $errfile, $errline)
 
- 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 inherited from CourseAvatar
 getCssClass ($size)
 
 checkAvatarVisibility ()
 
- Protected Member Functions inherited from Avatar
 __construct ($user_id, $username=null)
 
 getCssClass ($size)
 
 checkAvatarVisibility ()
 
 sanitizeOrientation ($filename)
 

Detailed Description

This class represents the avatar of a course.

Author
Marcus Lunzenauer (mlunzena), Till Glöggler (tgloeggl) GPL2 or any later version
Since
1.10

Field Documentation

◆ NOBODY

const NOBODY = 'studygroup'
protected

This constant holds the username and ID of the "studygroup" avatar.


The documentation for this class was generated from the following file: