ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
4function 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
An exception for terminatinating execution or to throw for unit testing.
$DIC
Definition: xapitoken.php:46