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
user.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
3
4
function
user
()
5
{
6
//Init Factory and Renderer
7
global
$DIC
;
8
$f
= $DIC->ui()->factory();
9
$renderer = $DIC->ui()->renderer();
10
11
$address =
$f
->listing()->descriptive(
12
array(
13
"Address"
=>
"Hochschlustrasse 6"
,
14
""
=>
"3006 Bern"
,
15
"Contact"
=>
"timon.amstutz@ilub.unibe.ch"
16
)
17
);
18
19
//Define the some responsive image
20
$image =
$f
->image()->responsive(
21
"./templates/default/images/HeaderIcon.svg"
,
22
"Thumbnail Example"
23
);
24
25
//Define the card by using the image and add a new section with a button
26
$card =
$f
->card()->standard(
27
"Timon Amstutz"
,
28
$image
29
)->withSections(array($address,
$f
->button()->standard(
"Request Contact"
,
""
)));
30
31
//Create a deck with large cards
32
$deck =
$f
->deck(array($card,$card,$card,$card,$card,$card,$card))->withLargeCardsSize();
33
34
//Render
35
return
$renderer->render($deck);
36
}
user
user()
Definition:
user.php:4
Vendor\Package\$f
$f
Definition:
example_cleaned.php:31
$DIC
$DIC
Definition:
xapitoken.php:46
src
UI
examples
Deck
user.php
Generated on Wed Apr 9 2025 20:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)