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

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 ()
 

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)
 
- Protected Attributes inherited from Avatar
const CREATE_CHUNKED_FOLDERS = true
 
const NOBODY = 'nobody'
 
 $user_id
 
 $username
 

Detailed Description

This class represents the avatar of a institute.

Author
André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e
Marcus Lunzenauer <mlunzena>
Since
1.10

Member Function Documentation

◆ checkAvatarVisibility()

checkAvatarVisibility ( )
protected

Return if avatar is visible to the current user.

Returns
boolean: true if visible

◆ getCssClass()

getCssClass (   $size)
protected

Returns the CSS class to use for this avatar image.

Parameters
string$sizeone of the constants Avatar::(NORMAL|MEDIUM|SMALL)
Returns
string CSS class to use for the avatar

◆ getDefaultTitle()

getDefaultTitle ( )

Return the default title of the avatar.

Returns
string the default title

Field Documentation

◆ AVATAR_TYPE

const AVATAR_TYPE = 'institute'

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