ILIAS  release_8 Revision v8.24
small.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7//This can be used, when space is very scarce and the label can not be displayed
8function small()
9{
10 //Loading factories
11 global $DIC;
12 $f = $DIC->ui()->factory();
13 $renderer = $DIC->ui()->renderer();
14
15 $options = array(
16 'default_option' => 'Default Ordering',
17 'latest' => 'Most Recent Ordering',
18 'oldest' => 'Oldest Ordering'
19 );
20
21 //Note that no label is attached
22 $s = $f->viewControl()->sortation($options)
23 ->withTargetURL($DIC->http()->request()->getRequestTarget(), 'sortation');
24
25
26 return $renderer->render($s);
27}
global $DIC
Definition: feed.php:28