ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
with_object_icon_and_progressmeter_mini.php File Reference

Go to the source code of this file.

Functions

 with_object_icon_and_progressmeter_mini ()
 

Function Documentation

◆ with_object_icon_and_progressmeter_mini()

with_object_icon_and_progressmeter_mini ( )

Definition at line 5 of file with_object_icon_and_progressmeter_mini.php.

References $DIC, and $f.

6 {
7  //Init Factory and Renderer
8  global $DIC;
9  $f = $DIC->ui()->factory();
10  $renderer = $DIC->ui()->renderer();
11 
12  $icon = $f->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 }
global $DIC
Definition: saml.php:7