ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
user.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Deck
;
6
7
function
user
()
8
{
9
//Init Factory and Renderer
10
global
$DIC
;
11
$f
= $DIC->ui()->factory();
12
$renderer = $DIC->ui()->renderer();
13
14
$address =
$f
->listing()->descriptive(
15
array(
16
"Address"
=>
"Hochschlustrasse 6"
,
17
""
=>
"3006 Bern"
,
18
"Contact"
=>
"timon.amstutz@ilub.unibe.ch"
19
)
20
);
21
22
//Define the some responsive image
23
$image =
$f
->image()->responsive(
24
"./templates/default/images/HeaderIcon.svg"
,
25
"Thumbnail Example"
26
);
27
28
//Define the card by using the image and add a new section with a button
29
$card =
$f
->card()->standard(
30
"Timon Amstutz"
,
31
$image
32
)->withSections(array($address,
$f
->button()->standard(
"Request Contact"
,
""
)));
33
34
//Create a deck with large cards
35
$deck =
$f
->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
36
37
//Render
38
return
$renderer->render($deck);
39
}
ILIAS\UI\examples\Deck\user
user()
Definition:
user.php:7
$DIC
global $DIC
Definition:
feed.php:28
ILIAS\UI\examples\Deck
Definition:
base.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
src
UI
examples
Deck
user.php
Generated on Tue Apr 1 2025 22:02:49 for ILIAS by
1.8.13 (using
Doxyfile
)