ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
maximum_configuration.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
37 {
38  //Loading factories
39  global $DIC;
40  $f = $DIC->ui()->factory();
41  $renderer = $DIC->ui()->renderer();
42 
43  //Generating and rendering the standard progressmeter
44  $progressmeter = $f->chart()->progressMeter()->standard(100, 75, 80, 50);
45 
46  // add score text
47  $progressmeter = $progressmeter->withMainText('Your Score');
48 
49  // add required text
50  $progressmeter = $progressmeter->withRequiredText('Required Score');
51 
52  // render
53  return $renderer->render($progressmeter);
54 }
$renderer
global $DIC
Definition: shib_login.php:22
maximum_configuration()
description: > Example for rendering a standard Progress Meter with maximum configuration ...