ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Avatar.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Symbol\Avatar
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
25
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
26
27
abstract
class
Avatar
implements
C\Symbol\Avatar\Avatar
28
{
29
use
ComponentHelper
;
30
use
JavaScriptBindable
;
31
32
private
string
$username
;
33
protected
string
$label
=
''
;
34
35
public
function
__construct
(
string
$username)
36
{
37
$this->username =
$username
;
38
}
39
40
public
function
getUsername
(): string
41
{
42
return
$this->username
;
43
}
44
45
public
function
withLabel
(
string
$text):
C
\Symbol\
Avatar
\
Avatar
46
{
47
$clone = clone $this;
48
$clone->label = $text;
49
return
$clone;
50
}
51
52
public
function
getLabel
(): string
53
{
54
return
$this->label
;
55
}
56
}
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\getUsername
getUsername()
Definition:
Avatar.php:40
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\__construct
__construct(string $username)
Definition:
Avatar.php:35
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\getLabel
getLabel()
Definition:
Avatar.php:52
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\$label
string $label
Definition:
Avatar.php:33
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar
Definition:
Avatar.php:27
ComponentHelper
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\$username
string $username
Definition:
Avatar.php:32
ComponentHelper
ILIAS\UI\Implementation\Component\Symbol\Avatar
Definition:
Avatar.php:21
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\withLabel
withLabel(string $text)
Definition:
Avatar.php:45
components
ILIAS
UI
src
Implementation
Component
Symbol
Avatar
Avatar.php
Generated on Wed Apr 9 2025 23:04:23 for ILIAS by
1.8.13 (using
Doxyfile
)