ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
13 function base()
14 {
15  global $DIC;
16  $f = $DIC->ui()->factory();
17  $renderer = $DIC->ui()->renderer();
18 
19  $props = $f->listing()->property()
20  ->withProperty('Title', 'Some Title')
21  ->withProperty('number', '7')
22  ->withProperty(
23  'status',
24  $renderer->render(
25  $f->symbol()->icon()->custom('./assets/images/learning_progress/in_progress.svg', 'incomplete'),
26  ) . ' in progress',
27  false
28  );
29 
30  $props2 = $props->withItems([
31  ['a', "1"],
32  ['y', "25", false],
33  ['link', $f->link()->standard('Goto ILIAS', 'http://www.ilias.de')]
34  ]);
35 
36  return $renderer->render([
37  $props,
38  $f->divider()->horizontal(),
39  $props2
40  ]);
41 }
$renderer
base()
expected output: > ILIAS shows the rendered Component.
Definition: base.php:13
global $DIC
Definition: shib_login.php:25