ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function base()
34 {
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $r = $DIC->ui()->renderer();
38 
39  //construct with options and labels for aria and button.
40  $fs = $f->input()->viewControl()->fieldSelection(
41  [
42  'c1' => 'column 1',
43  'c2' => 'column 2',
44  'x' => '...'
45  ],
46  'shown columns',
47  'apply'
48  );
49 
50  //it's more fun to view this in a ViewControlContainer
51  $vc_container = $f->input()->container()->viewControl()->standard([$fs])
52  ->withRequest($DIC->http()->request());
53 
54  return $r->render([
55  $f->legacy()->content('<pre>' . print_r($vc_container->getData(), true) . '</pre>'),
56  $f->divider()->horizontal(),
57  $vc_container
58  ]);
59 }
global $DIC
Definition: shib_login.php:22
base()
expected output: > There&#39;s a button with the column selection glyph as a label.
Definition: base.php:33
$r