ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
maximum_configuration.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
21 {
22  //Loading factories
23  global $DIC;
24  $f = $DIC->ui()->factory();
25  $renderer = $DIC->ui()->renderer();
26 
27  //Generating and rendering the standard progressmeter
28  $progressmeter = $f->chart()->progressMeter()->standard(100, 75, 80, 50);
29 
30  // add score text
31  $progressmeter = $progressmeter->withMainText('Your Score');
32 
33  // add required text
34  $progressmeter = $progressmeter->withRequiredText('Required Score');
35 
36  // render
37  return $renderer->render($progressmeter);
38 }
$renderer
global $DIC
Definition: shib_login.php:25
maximum_configuration()
description: > Example for rendering a standard Progress Meter with maximum configuration ...