ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUserAvatarFile Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilUserAvatarFile:
+ Collaboration diagram for ilUserAvatarFile:

Public Member Functions

 __construct (string $size)
 
 getUrl ()
 
- Public Member Functions inherited from ilUserAvatarBase
 setName (string $name)
 
 setUsrId (int $usrId)
 

Protected Attributes

string $size
 
- Protected Attributes inherited from ilUserAvatarBase
string $name = ''
 
int $usrId = 0
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilUserAvatarFile

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 26 of file class.ilUserAvatarFile.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserAvatarFile::__construct ( string  $size)

Definition at line 30 of file class.ilUserAvatarFile.php.

References $size.

31  {
32  $this->size = $size;
33  }

Member Function Documentation

◆ getUrl()

ilUserAvatarFile::getUrl ( )

Implements ilUserAvatar.

Definition at line 35 of file class.ilUserAvatarFile.php.

References ilUtil\getImagePath(), and ilWACSignedPath\signFile().

35  : string
36  {
37  return ilWACSignedPath::signFile(\ilUtil::getImagePath('no_photo_' . $this->size . '.jpg'));
38  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static signFile(string $path_to_file)
+ Here is the call graph for this function:

Field Documentation

◆ $size

string ilUserAvatarFile::$size
protected

Definition at line 28 of file class.ilUserAvatarFile.php.

Referenced by __construct().


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