ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
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 
29 function base()
30 {
31  global $DIC;
32  $f = $DIC->ui()->factory();
33  $renderer = $DIC->ui()->renderer();
34 
35  $props = $f->listing()->property()
36  ->withProperty('Title', 'Some Title')
37  ->withProperty('number', '7')
38  ->withProperty(
39  'status',
40  $renderer->render(
41  $f->symbol()->icon()->custom('./assets/images/learning_progress/in_progress.svg', 'incomplete'),
42  ) . ' in progress',
43  false
44  );
45 
46  $props2 = $props->withItems([
47  ['a', "1"],
48  ['y', "25", false],
49  ['link', $f->link()->standard('Goto ILIAS', 'http://www.ilias.de')]
50  ]);
51 
52  return $renderer->render([
53  $props,
54  $f->divider()->horizontal(),
55  $props2
56  ]);
57 }
$renderer
base()
expected output: > ILIAS shows the rendered Component.
Definition: base.php:29
global $DIC
Definition: shib_login.php:22