ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
18 function base()
19 {
20  global $DIC; /* @var \ILIAS\DI\Container $DIC */
21  $f = $DIC->ui()->factory();
22  $r = $DIC->ui()->renderer();
23 
24  $items = [
25  'Any Label for the First Item' => 'Item 1',
26  'Another Label for the Second Item' => 'Item 2',
27  'Third Item Label' => 'Item 3',
28  'Fourth Item Label' => 'Item 4'
29  ];
30 
31  $listing = $f->listing()->characteristicValue()->text($items);
32 
33  return $r->render($listing);
34 }
global $DIC
Definition: shib_login.php:25
base()
description: > Example for rendering a characteristic text value listing.
Definition: base.php:18
$r