ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
sort_descending.php File Reference

Go to the source code of this file.

Functions

 sort_descending ()
 Note that this example does not provide any functionality, it just shows, how this Glyph can be rendered. More...
 

Function Documentation

◆ sort_descending()

sort_descending ( )

Note that this example does not provide any functionality, it just shows, how this Glyph can be rendered.

The functionality needs to be provided by some surrounding component (e.g. Table)

Definition at line 6 of file sort_descending.php.

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

7 {
8  global $DIC;
9  $f = $DIC->ui()->factory();
10  $renderer = $DIC->ui()->renderer();
11 
12  $glyph = $f->symbol()->glyph()->sortDescending("#");
13 
14  //Showcase the various states of this Glyph
15  $list = $f->listing()->descriptive([
16  "Active" => $glyph,
17  "Inactive" => $glyph->withUnavailableAction(),
18  "Highlighted" => $glyph->withHighlight()
19  ]);
20 
21  return $renderer->render($list);
22 }
$DIC
Definition: xapitoken.php:46