ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
maximum_configuration.php File Reference

Go to the source code of this file.

Functions

 maximum_configuration ()
 Example for rendering a standard Progress Meter with maximum configuration. More...
 

Function Documentation

◆ maximum_configuration()

maximum_configuration ( )

Example for rendering a standard Progress Meter with maximum configuration.

Definition at line 5 of file maximum_configuration.php.

References $DIC, and $f.

6 {
7  //Loading factories
8  global $DIC;
9  $f = $DIC->ui()->factory();
10  $renderer = $DIC->ui()->renderer();
11 
12  //Genarating and rendering the standard progressmeter
13  $progressmeter = $f->chart()->progressMeter()->standard(100, 75, 80, 50);
14 
15  // add score text
16  $progressmeter = $progressmeter->withMainText('Your Score');
17 
18  // add required text
19  $progressmeter = $progressmeter->withRequiredText('Required Score');
20 
21  // render
22  return $renderer->render($progressmeter);
23 }
global $DIC
Definition: saml.php:7