ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
user_reached_required.php File Reference

Go to the source code of this file.

Functions

 user_reached_required ()
 Example for rendering a standard Progress Meter when the required value was reached. More...
 

Function Documentation

◆ user_reached_required()

user_reached_required ( )

Example for rendering a standard Progress Meter when the required value was reached.

Definition at line 5 of file user_reached_required.php.

References $DIC, and Vendor\Package\$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, 80, 75);
14 
15  // render
16  return $renderer->render($progressmeter);
17 }
$DIC
Definition: xapitoken.php:46