ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 function base()
5 {
6  global $DIC; /* @var \ILIAS\DI\Container $DIC */
7  $f = $DIC->ui()->factory();
8  $r = $DIC->ui()->renderer();
9 
10  $items = [
11  'Any Label for the First Item' => 'Item 1',
12  'Another Label for the Second Item' => 'Item 2',
13  'Third Item Label' => 'Item 3',
14  'Fourth Item Label' => 'Item 4'
15  ];
16 
17  $listing = $f->listing()->characteristicValue()->text($items);
18 
19  return $r->render($listing);
20 }
base()
Definition: base.php:4
$DIC
Definition: xapitoken.php:46