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 
18 function base()
19 {
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $sub1 = $f->panel()->sub("Sub Panel Title 1", $f->legacy("Some Content"))
25  ->withFurtherInformation($f->card()->standard("Card Heading")->withSections(array($f->legacy("Card Content"))));
26  $sub2 = $f->panel()->sub("Sub Panel Title 2", $f->legacy("Some Content"));
27 
28  $block = $f->panel()->report("Report Title", array($sub1,$sub2));
29 
30  return $renderer->render($block);
31 }
$renderer
base()
description: > Example for rendering a report panel.
Definition: base.php:18
global $DIC
Definition: shib_login.php:25