ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
maximum_configuration.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
11 {
12  //Loading factories
13  global $DIC;
14  $f = $DIC->ui()->factory();
15  $renderer = $DIC->ui()->renderer();
16 
17  //Generating and rendering the standard progressmeter
18  $progressmeter = $f->chart()->progressMeter()->standard(100, 75, 80, 50);
19 
20  // add score text
21  $progressmeter = $progressmeter->withMainText('Your Score');
22 
23  // add required text
24  $progressmeter = $progressmeter->withRequiredText('Required Score');
25 
26  // render
27  return $renderer->render($progressmeter);
28 }
global $DIC
Definition: feed.php:28
maximum_configuration()
Example for rendering a standard Progress Meter with maximum configuration.