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

Go to the source code of this file.

Functions

 std_course_icon ()
 

Function Documentation

◆ std_course_icon()

std_course_icon ( )

Definition at line 2 of file std_course_icon.php.

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

3 {
4  global $DIC;
5  $f = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  $buffer = array();
9 
10  $ico = $f->symbol()->icon()->standard('crs', 'Course', 'small');
11 
12  $buffer[] = $renderer->render($ico)
13  . ' Small Course';
14 
15  $buffer[] = $renderer->render($ico->withSize('medium'))
16  . ' Medium Course';
17 
18  $buffer[] = $renderer->render($ico->withSize('large'))
19  . ' Large Course';
20 
21 
22  return implode('<br><br>', $buffer);
23 }
$DIC
Definition: xapitoken.php:46