ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
disabled.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function disabled()
34{
35 global $DIC;
36 $ui = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 //define options.
40 $options = array(
41 "1" => "Pick 1",
42 "2" => "Pick 2",
43 "3" => "Pick 3",
44 "4" => "Pick 4",
45 );
46
47 $multi = $ui->input()->field()->multiselect("Take your picks", $options, "This is the byline text")
48 ->withValue(['2','4'])
49 ->withDisabled(true);
50
51 $form = $ui->input()->container()->form()->standard('#', ['multi' => $multi]);
52 return $renderer->render($form);
53}
$renderer
global $DIC
Definition: shib_login.php:26