ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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
user.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Deck
;
22
34
function
user
()
35
{
36
//Init Factory and Renderer
37
global
$DIC
;
38
$f
= $DIC->ui()->factory();
39
$renderer
= $DIC->ui()->renderer();
40
41
$address =
$f
->listing()->descriptive(
42
array(
43
"Address"
=>
"Hochschlustrasse 6"
,
44
""
=>
"3006 Bern"
,
45
"Contact"
=>
"timon.amstutz@ilub.unibe.ch"
46
)
47
);
48
49
//Define the some responsive image
50
$image =
$f
->image()->responsive(
51
"./assets/images/logo/HeaderIcon.svg"
,
52
"Thumbnail Example"
53
);
54
55
//Define the card by using the image and add a new section with a button
56
$card =
$f
->card()->standard(
57
"Timon Amstutz"
,
58
$image
59
)->withSections(array($address,
$f
->button()->standard(
"Request Contact"
,
""
)));
60
61
//Create a deck with large cards
62
$deck =
$f
->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
63
64
//Render
65
return
$renderer
->render($deck);
66
}
ILIAS\UI\examples\Deck\user
user()
description: > Example for rendering a user card
Definition:
user.php:34
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Deck
Definition:
base.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:22
components
ILIAS
UI
src
examples
Deck
user.php
Generated on Sun Apr 6 2025 23:04:32 for ILIAS by
1.8.13 (using
Doxyfile
)