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

Go to the source code of this file.

Functions

 base ()
 

Function Documentation

◆ base()

base ( )

Definition at line 3 of file base.php.

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

4 {
5  $examples = array(
6  1 => 'om',
7  2 => 'gk',
8  3 => 'bj',
9  4 => 'ea',
10  5 => 'mf',
11  6 => 'ob',
12  7 => 'bi',
13  8 => 'hu',
14  9 => 'fa',
15  10 => 'so',
16  11 => 'il',
17  12 => 'ut',
18  13 => 'ur',
19  14 => 'lt',
20  15 => 'kg',
21  16 => 'jl',
22  17 => 'qb',
23  18 => 'rq',
24  19 => 'ot',
25  20 => 'cq',
26  21 => 'rm',
27  22 => 'aj',
28  23 => 'li',
29  24 => 'er',
30  25 => 'ui',
31  26 => 'mi',
32  );
33 
34  global $DIC;
35  $f = $DIC->ui()->factory();
36  $r = $DIC->ui()->renderer();
37 
38  $avatars = [];
39  foreach ($examples as $abbreviation) {
40  $letter = $f->symbol()->avatar()->letter($abbreviation);
41  $avatars[] = $letter;
42  }
43 
44  return $r->render($avatars);
45 }
$DIC
Definition: xapitoken.php:46