ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
with_object_icon_and_progressmeter_mini.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Card\RepositoryObject
;
22
33
function
with_object_icon_and_progressmeter_mini
()
34
{
35
//Init Factory and Renderer
36
global
$DIC
;
37
$f
=
$DIC
->ui()->factory();
38
$renderer
=
$DIC
->ui()->renderer();
39
40
$icon =
$f
->symbol()->icon()->standard(
"crs"
,
'Course'
);
41
$progressmeter =
$f
->chart()->progressMeter()->mini(100, 70);
42
43
$content =
$f
->listing()->descriptive(
44
array(
45
"Entry 1"
=>
"Some text"
,
46
"Entry 2"
=>
"Some more text"
,
47
)
48
);
49
50
$image =
$f
->image()->responsive(
51
"./assets/images/logo/HeaderIcon.svg"
,
52
"Thumbnail Example"
53
);
54
55
$card =
$f
->card()->repositoryObject(
56
"Title"
,
57
$image
58
)->withObjectIcon(
59
$icon
60
)->withProgress(
61
$progressmeter
62
)->withSections(
63
array(
64
$content,
65
$content,
66
)
67
);
68
69
//Render
70
return
$renderer
->render($card);
71
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Card\RepositoryObject
Definition:
base.php:21
ILIAS\UI\examples\Card\RepositoryObject\with_object_icon_and_progressmeter_mini
with_object_icon_and_progressmeter_mini()
Definition:
with_object_icon_and_progressmeter_mini.php:33
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
components
ILIAS
UI
src
examples
Card
RepositoryObject
with_object_icon_and_progressmeter_mini.php
Generated on Sat Oct 18 2025 23:04:40 for ILIAS by
1.9.4 (using
Doxyfile
)