ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
std_icons.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function std_icons()
18 {
19  global $DIC;
20  $f = $DIC->ui()->factory();
21  $renderer = $DIC->ui()->renderer();
22  $lng = $DIC->language();
23 
24  $i = $f->symbol()->icon()->standard('NONE', 'DummyIcon');
25  $default_icons = $i->getAllStandardHandles();
26  $buffer = array();
27 
28  foreach ($default_icons as $icon) {
29  $i = $f->symbol()->icon()->standard($icon, $icon, 'medium');
30  $buffer[] = $renderer->render($i)
31  . ' '
32  . $icon
33  . ' - '
34  . $lng->txt("obj_$icon");
35  }
36 
37  return implode('<br><br>', $buffer);
38 }
$renderer
std_icons()
description: > Example for rendering standard icons.
Definition: std_icons.php:17
global $DIC
Definition: shib_login.php:25
global $lng
Definition: privfeed.php:32