Stud.IP  trunk Revision
InstituteAvatar Class Reference
Inheritance diagram for InstituteAvatar:
Inheritance graph
Collaboration diagram for InstituteAvatar:
Collaboration graph

Public Member Functions

 getAvatarDirectoryUrl ()
 
 getAvatarDirectoryPath ()
 
 getDefaultTitle ()
 
- Public Member Functions inherited from CourseAvatar
 getAvatarDirectoryUrl ()
 
 getAvatarDirectoryPath ()
 
 getDefaultTitle ()
 
- Public Member Functions inherited from Avatar
 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=array())
 
 createFromUpload ($userfile)
 
 createFrom ($filename)
 
 reset ()
 
 getDimension ($size)
 
 getDefaultTitle ()
 

Static Public Member Functions

static getAvatar ($id)
 
static getNobody ()
 
- Static Public Member Functions inherited from CourseAvatar
static getAvatar ($id)
 
static getNobody ()
 
- Static Public Member Functions inherited from Avatar
static getAvatar ($id)
 
static getNobody ()
 
static error_handler ($errno, $errstr, $errfile, $errline)
 

Protected Member Functions

 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

- Data Fields inherited from Avatar
const ORIGINAL = 'original'
 
const NORMAL = 'normal'
 
const MEDIUM = 'medium'
 
const SMALL = 'small'
 
const MAX_FILE_SIZE = 10485760
 
const NOBODY = 'nobody'
 
- Protected Attributes inherited from Avatar
 $user_id
 
 $username
 

Member Function Documentation

◆ checkAvatarVisibility()

checkAvatarVisibility ( )
protected

Return if avatar is visible to the current user.

Returns
boolean: true if visible

◆ getAvatar()

static getAvatar (   $id)
static

Returns an avatar object of the appropriate class.

Parameters
stringthe course's id
Returns
mixed the course's avatar.
Here is the caller graph for this function:

◆ getAvatarDirectoryPath()

getAvatarDirectoryPath ( )

Returns the file system path to the institute' avatars

Returns
string the file system path to the avatars

◆ getAvatarDirectoryUrl()

getAvatarDirectoryUrl ( )

Returns the URL to the institute' avatars.

Returns
string the URL to the avatars

◆ getDefaultTitle()

getDefaultTitle ( )

Return the default title of the avatar.

Returns
string the default title
Here is the call graph for this function:

◆ getNobody()

static getNobody ( )
static

Returns an avatar object for "nobody".

Returns
mixed the course's avatar.

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