ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php File Reference

Go to the source code of this file.

Functions

 base ()
 

Function Documentation

◆ base()

base ( )

Definition at line 4 of file base.php.

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}
$DIC
Definition: xapitoken.php:46

References $DIC, and Vendor\Package\$f.