Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
CourseAvatar Class Reference
Inheritance diagram for CourseAvatar:
Inheritance graph
Collaboration diagram for CourseAvatar:
Collaboration graph

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

Member Function Documentation

static getAvatar (   $course_id)
static

Returns an avatar object of the appropriate class.

Parameters
stringthe course's id
Returns
mixed the course's avatar.

Reimplemented in InstituteAvatar, and StudygroupAvatar.

Here is the caller graph for this function:

getAvatarDirectoryPath ( )

Returns the file system path to the courses' avatars

Returns
string the file system path to the avatars

Reimplemented from Avatar.

Reimplemented in InstituteAvatar.

getAvatarDirectoryUrl ( )

Returns the URL to the courses' avatars.

Returns
string the URL to the avatars

Reimplemented from Avatar.

Reimplemented in InstituteAvatar.

getCssClass (   $size)
protected

Returns the CSS class to use for this avatar image.

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

Reimplemented from Avatar.

getDefaultTitle ( )

Return the default title of the avatar.

Returns
string the default title

Reimplemented from Avatar.

Reimplemented in InstituteAvatar.

Here is the call graph for this function:

getDimension (   $size)

Return the dimension of a size

Parameters
stringthe dimension of a size
Returns
array a tupel of integers [width, height]

Reimplemented from Avatar.

static getNobody ( )
static

Returns an avatar object for "nobody".

Returns
mixed the course's avatar.

Reimplemented from Avatar.

Reimplemented in InstituteAvatar, and StudygroupAvatar.


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