ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
with_dedicated_name.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Input\Field
;
6
20
function
with_dedicated_name
()
21
{
22
global
$DIC
;
23
$ui = $DIC->ui()->factory();
24
$renderer
= $DIC->ui()->renderer();
25
26
$text_input = $ui->input()->field()
27
->text(
"Username"
,
"A username"
)
28
->withDedicatedName(
'username'
);
29
30
// Inputs with and without dedicated names can be mixed
31
$password_input = $ui->input()->field()
32
->password(
"Password"
,
"A secret password"
);
33
34
$duration_input = $ui->input()->field()
35
->duration(
"Valid from/to"
)
36
->withDedicatedName(
'valid'
);
37
38
$form = $ui->input()->container()->form()->standard(
""
, [$text_input, $password_input, $duration_input]);
39
return
$renderer
->render($form);
40
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Input\Field
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Input\Field\with_dedicated_name
with_dedicated_name()
description: > Example showing an Input with an optional dedicated name which is used as NAME attrib...
Definition:
with_dedicated_name.php:20
components
ILIAS
UI
src
examples
Input
Field
with_dedicated_name.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)