ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
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 
34 function base()
35 {
36  global $DIC; /* @var \ILIAS\DI\Container $DIC */
37  $f = $DIC->ui()->factory();
38  $r = $DIC->ui()->renderer();
39 
40  $items = [
41  'Any Label for the First Item' => 'Item 1',
42  'Another Label for the Second Item' => 'Item 2',
43  'Third Item Label' => 'Item 3',
44  'Fourth Item Label' => 'Item 4'
45  ];
46 
47  $listing = $f->listing()->characteristicValue()->text($items);
48 
49  return $r->render($listing);
50 }
global $DIC
Definition: shib_login.php:22
base()
description: > Example for rendering a characteristic text value listing.
Definition: base.php:34
$r