ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
no_score_yet.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function no_score_yet()
34 {
35  //Loading factories
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  //Generating and rendering the mini progressmeter
41  $progressmeter = $f->chart()->progressMeter()->mini(100, 0);
42 
43  // render
44  return $renderer->render($progressmeter);
45 }
$renderer
global $DIC
Definition: shib_login.php:22
no_score_yet()
description: > Example for rendering a mini Progress Meter when no score is given ...