ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
no_score_yet.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
10 function no_score_yet()
11 {
12  //Loading factories
13  global $DIC;
14  $f = $DIC->ui()->factory();
15  $renderer = $DIC->ui()->renderer();
16 
17  //Generating and rendering the mini progressmeter
18  $progressmeter = $f->chart()->progressMeter()->mini(100, 0);
19 
20  // render
21  return $renderer->render($progressmeter);
22 }
global $DIC
Definition: feed.php:28
no_score_yet()
Example for rendering a mini Progress Meter when no score is given.