ILIAS  release_8 Revision v8.24
class.ilUserAvatarFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
27{
28 protected \ILIAS\DI\Container $dic;
29
30 public function __construct(\ILIAS\DI\Container $dic)
31 {
32 $this->dic = $dic;
33 }
34
35 public function avatar(string $size): ilUserAvatar
36 {
37 if ((int) $this->dic->settings()->get('letter_avatars')) {
38 return $this->letter();
39 }
40
41 return $this->file($size);
42 }
43
44 public function letter(): ilUserAvatarLetter
45 {
46 return new ilUserAvatarLetter();
47 }
48
49 public function file(string $size): ilUserAvatarFile
50 {
51 return new ilUserAvatarFile($size);
52 }
53}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(\ILIAS\DI\Container $dic)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class HTTPServicesTest.
Class ChatMainBarProvider \MainMenu\Provider.