ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilUserAvatarFactory.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9
class
ilUserAvatarFactory
10
{
14
protected
$dic
;
15
20
public
function
__construct
(\
ILIAS
\
DI
\Container
$dic
)
21
{
22
$this->dic =
$dic
;
23
}
24
29
public
function
avatar
(
$size
)
30
{
31
if
((
int
) $this->dic->settings()->get(
'letter_avatars'
)) {
32
return
$this->
letter
();
33
}
34
35
return
$this->
file
(
$size
);
36
}
37
41
public
function
letter
()
42
{
43
return
new
ilUserAvatarLetter
();
44
}
45
50
public
function
file
(
$size
)
51
{
52
return
new
ilUserAvatarFile
(
$size
);
53
}
54
}
ilUserAvatarFactory
Class ilUserAvatarFactory.
Definition:
class.ilUserAvatarFactory.php:9
$size
$size
Definition:
RandomTest.php:84
ilUserAvatarFactory\__construct
__construct(\ILIAS\DI\Container $dic)
ilUserAvatarFactory constructor.
Definition:
class.ilUserAvatarFactory.php:20
ILIAS
Class ChatMainBarProvider .
ilUserAvatarFile
Class ilUserAvatarFile.
Definition:
class.ilUserAvatarFile.php:9
ilUserAvatarFactory\letter
letter()
Definition:
class.ilUserAvatarFactory.php:41
ilUserAvatarFactory\file
file($size)
Definition:
class.ilUserAvatarFactory.php:50
DI
Class HTTPServicesTest.
ilUserAvatarFactory\$dic
$dic
Definition:
class.ilUserAvatarFactory.php:14
ilUserAvatarLetter
Class ilUserAvatarLetter.
Definition:
class.ilUserAvatarLetter.php:9
ilUserAvatarFactory\avatar
avatar($size)
Definition:
class.ilUserAvatarFactory.php:29
Services
User
Avatar
classes
class.ilUserAvatarFactory.php
Generated on Thu Apr 3 2025 20:01:16 for ILIAS by
1.8.13 (using
Doxyfile
)