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

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

+ Collaboration diagram for ilUserAvatarFactory:

Public Member Functions

 __construct (\ILIAS\DI\Container $dic)
 
 avatar (string $size)
 
 letter ()
 
 file (string $size)
 

Protected Attributes

ILIAS DI Container $dic
 

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 ilUserAvatarFactory

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.ilUserAvatarFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilUserAvatarFactory::__construct ( \ILIAS\DI\Container  $dic)

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

References $dic.

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

Member Function Documentation

◆ avatar()

ilUserAvatarFactory::avatar ( string  $size)

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

References file(), and letter().

35  : ilUserAvatar
36  {
37  if ((int) $this->dic->settings()->get('letter_avatars')) {
38  return $this->letter();
39  }
40 
41  return $this->file($size);
42  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the call graph for this function:

◆ file()

ilUserAvatarFactory::file ( string  $size)

Definition at line 49 of file class.ilUserAvatarFactory.php.

Referenced by avatar().

50  {
51  return new ilUserAvatarFile($size);
52  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

◆ letter()

ilUserAvatarFactory::letter ( )

Definition at line 44 of file class.ilUserAvatarFactory.php.

Referenced by avatar().

45  {
46  return new ilUserAvatarLetter();
47  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ Here is the caller graph for this function:

Field Documentation

◆ $dic

ILIAS DI Container ilUserAvatarFactory::$dic
protected

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

Referenced by __construct().


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