ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
Avatar.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4
namespace
ILIAS\UI\Implementation\Component\Symbol\Avatar
;
5
6
use
ILIAS\UI\Component
as
C
;
7
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
8
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
9
10
abstract
class
Avatar
implements
C\Symbol\Avatar\Avatar
11
{
12
use
ComponentHelper
;
13
use
JavaScriptBindable
;
17
private
$username
;
18
19
protected
$alternative_text
=
""
;
20
21
public
function
__construct
(
string
$username
)
22
{
23
$this->username =
$username
;
24
}
25
29
public
function
getUsername
() : string
30
{
31
return
$this->username
;
32
}
33
34
public
function
withAlternativeText
(
string
$text) :
C
\Symbol\
Avatar
\
Avatar
35
{
36
$clone = clone $this;
37
$clone->alternative_text = $text;
38
return
$clone;
39
}
40
41
public
function
getAlternativeText
() : string
42
{
43
return
$this->alternative_text
;
44
}
45
}
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\getUsername
getUsername()
Definition:
Avatar.php:29
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\withAlternativeText
withAlternativeText(string $text)
Definition:
Avatar.php:34
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\__construct
__construct(string $username)
Definition:
Avatar.php:21
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:12
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\getAlternativeText
getAlternativeText()
Definition:
Avatar.php:41
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\$alternative_text
$alternative_text
Definition:
Avatar.php:19
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar
Definition:
Avatar.php:10
ILIAS\UI\Implementation\Component\Symbol\Avatar\Avatar\$username
$username
Definition:
Avatar.php:17
ILIAS\UI\Implementation\Component\Symbol\Avatar
Definition:
Avatar.php:4
src
UI
Implementation
Component
Symbol
Avatar
Avatar.php
Generated on Sun Apr 27 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)