ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
default_icon.php File Reference

Go to the source code of this file.

Functions

 default_icon ()
 

Function Documentation

◆ default_icon()

default_icon ( )

Definition at line 2 of file default_icon.php.

References $DIC, and array.

3 {
4  global $DIC;
5  $f = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  $buffer = array();
9 
10  $ico = $f->icon()->standard('someExample', 'Example');
11  $ico = $ico->withAbbreviation('E');
12 
13  $buffer[] = $renderer->render($ico)
14  . ' Small Example';
15 
16  $buffer[] = $renderer->render($ico->withSize('medium'))
17  . ' Medium Example';
18 
19  $buffer[] = $renderer->render($ico->withSize('large'))
20  . ' Large Example';
21 
22 
23  $ico = $f->icon()->standard('someObject', 'Object');
24  $ico = $ico->withAbbreviation('OB');
25 
26  $buffer[] = $renderer->render($ico->withSize('small'))
27  . ' Small Object';
28 
29  $buffer[] = $renderer->render($ico->withSize('medium'))
30  . ' Medium Object';
31 
32  $buffer[] = $renderer->render($ico->withSize('large'))
33  . ' Large Object';
34 
35 
36  return implode('<br><br>', $buffer);
37 }
global $DIC
Definition: saml.php:7
Create styles array
The data for the language used.