ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
with_card.php
Go to the documentation of this file.
1<?php
2
3function with_card() {
4 global $DIC;
5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
7
8 $block = $f->panel()->standard("Panel Title",
9 $f->panel()->sub("Sub Panel Title",$f->legacy("Some Content"))
10 ->withCard($f->card("Card Heading")->withSections(array($f->legacy("Card Content"))))
11 );
12
13 return $renderer->render($block);
14}
An exception for terminatinating execution or to throw for unit testing.
global $DIC
with_card()
Definition: with_card.php:3