ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
small.php
Go to the documentation of this file.
1 <?php
2 //This can be used, when space is very scarce and the label can not be displayed
3 function small()
4 {
5  //Loading factories
6  global $DIC;
7  $f = $DIC->ui()->factory();
8  $renderer = $DIC->ui()->renderer();
9 
10  $options = array(
11  'default_option' => 'Default Ordering',
12  'latest' => 'Most Recent Ordering',
13  'oldest' => 'Oldest Ordering'
14  );
15 
16  //Note that no label is attached
17  $s = $f->viewControl()->sortation($options)
18  ->withTargetURL($DIC->http()->request()->getRequestTarget(), 'sortation');
19 
20 
21  return $renderer->render($s);
22 }
small()
Definition: small.php:3
$DIC
Definition: xapitoken.php:46