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
base.php
Go to the documentation of this file.
1
<?php
5
function
base
()
6
{
7
// Step 0: Declare dependencies.
8
global
$DIC
;
9
$ui = $DIC->ui()->factory();
10
$renderer = $DIC->ui()->renderer();
11
12
// Step 1: Define the input field.
13
// See the implementation of a UploadHandler in Services/UI/classes/class.ilUIDemoFileUploadHandlerGUI.php
14
$file_input = $ui->input()->field()->file(
new
ilUIDemoFileUploadHandlerGUI
(),
"Upload File"
,
"you can drop your files here"
);
15
16
// Step 2: Define the form and attach the field.
17
$form = $ui->input()->container()->form()->standard(
"#"
, [$file_input]);
18
19
// Step 4: Render the form.
20
return
$renderer->render($form);
21
}
base
base()
Definition:
base.php:4
ilUIDemoFileUploadHandlerGUI
Class ilUIDemoFileUploadHandlerGUI.
Definition:
class.ilUIDemoFileUploadHandlerGUI.php:14
$DIC
$DIC
Definition:
xapitoken.php:46
src
UI
examples
Input
Field
File
base.php
Generated on Sun Apr 6 2025 20:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)