3 declare(strict_types=1);
22 $f = $DIC->ui()->factory();
27 $close_url =
$_SERVER[
'REQUEST_URI'] .
'&aggregate_closed=true';
39 $generic_icon1 =
$f->symbol()->icon()->standard(
"cal",
"generic");
40 $generic_title1 =
$f->link()->standard(
"Aggregate of Item",
"#");
41 $generic_item1 =
$f->item()->notification($generic_title1, $generic_icon1)
42 ->withDescription(
"Is shown when top item is clicked")
43 ->withProperties([
"Property 1" =>
"Content 1",
"Property 2" =>
"Content 2"])
45 $f->dropdown()->standard([
46 $f->button()->shy(
"Link to ilias.de",
"https://www.ilias.de"),
47 $f->button()->shy(
"Link to github",
"https://www.github.com")
50 ->withCloseAction($close_url);
52 $generic_title2 =
$f->link()->standard(
"Item",
"just_opens_the_list_of_aggregates");
53 $generic_item2 =
$f->item()->notification($generic_title2, $generic_icon1)
54 ->withDescription(
"Notification Item with Aggregates")
55 ->withProperties([
"Property 1" =>
"Content 1",
"Property 2" =>
"Content 2"])
56 ->withAggregateNotifications([$generic_item1, $generic_item1]);
include_aggregates()
description: > Example for rendering a notificication item including aggregates. ...