ILIAS  release_7 Revision v7.30-3-g800a261c036
with_object_icon_and_progressmeter_mini.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Jesús López <lopez@leifos.com> Extended GPL, see docs/LICENSE */
4
6{
7 //Init Factory and Renderer
8 global $DIC;
9 $f = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
11
12 $icon = $f->symbol()->icon()->standard("crs", 'Course')->withIsOutlined(true);
13 $progressmeter = $f->chart()->progressMeter()->mini(100, 70);
14
15 $content = $f->listing()->descriptive(
16 array(
17 "Entry 1" => "Some text",
18 "Entry 2" => "Some more text",
19 )
20 );
21
22 $image = $f->image()->responsive(
23 "./templates/default/images/HeaderIcon.svg",
24 "Thumbnail Example"
25 );
26
27 $card = $f->card()->repositoryObject(
28 "Title",
29 $image
30 )->withObjectIcon(
31 $icon
32 )->withProgress(
33 $progressmeter
34 )->withSections(
35 array(
36 $content,
37 $content,
38 )
39 );
40
41 //Render
42 return $renderer->render($card);
43}
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24