ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function base()
34 {
35  //Init Factory and Renderer
36  global $DIC;
37  $f = $DIC->ui()->factory();
38  $renderer = $DIC->ui()->renderer();
39 
40  $c = $f->chart()->scaleBar(
41  array(
42  "None" => false,
43  "Low" => false,
44  "Medium" => true,
45  "High" => false
46  )
47  );
48 
49  //Render
50  return $renderer->render($c);
51 }
$renderer
base()
description: > Example of rendering a base scale bar.
Definition: base.php:33
$c
Definition: deliver.php:25
global $DIC
Definition: shib_login.php:22