Go to the source code of this file.
◆ in_form()
Example of how to process passwords.
Note that the value of Password is a Data\Password, not a string-primitive.
Definition at line 6 of file in_form.php.
7{
8
10 $ui =
$DIC->ui()->factory();
11 $renderer =
$DIC->ui()->renderer();
13
14
15 $pwd_input = $ui->input()->field()->password("Password", "! value will be displayed...")
16 ->withRevelation(true);
17
18
19 $DIC->ctrl()->setParameterByClass(
20 'ilsystemstyledocumentationgui',
21 'example',
22 'password'
23 );
24 $form_action =
$DIC->ctrl()->getFormActionByClass(
'ilsystemstyledocumentationgui');
25 $form = $ui->input()->container()->form()->standard($form_action, [
'password' => $pwd_input]);
26
27
30 &&
$request->getQueryParams()[
'example'] ==
'password') {
33 }
34
35
36 return
37 "<pre>" . print_r(
$result,
true) .
"</pre><br/>" .
38 $renderer->render(
$form);
39}
foreach($paths as $path) $request
if(isset($_POST['submit'])) $form
References $DIC, $form, $request, and $result.