Go to the source code of this file.
◆ with_aggregates()
Definition at line 2 of file with_aggregates.php.
References $_SERVER, $DIC, and Vendor\Package\$f.
5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
10 $generic_icon1 =
$f->symbol()->icon()->standard(
"cal",
"generic");
11 $generic_title1 =
$f->link()->standard(
"Generic 1",
"link_to_generic_repo");
12 $generic_item1 =
$f->item()->notification($generic_title1, $generic_icon1)
13 ->withDescription(
"Some description.")
14 ->withProperties([
"Property 1" =>
"Content 1",
"Property 2" =>
"Content 2"])
16 $f->dropdown()->standard([
17 $f->button()->shy(
"Possible Action of this Item",
"https://www.ilias.de"),
18 $f->button()->shy(
"Other Possible Action of this Item",
"https://www.github.com")
21 ->withCloseAction($close_url);
23 $generic_title2 =
$f->link()->standard(
"Generic 2",
"just_opens_the_list_of_aggregates");
24 $generic_item2 =
$f->item()->notification($generic_title2, $generic_icon1)
25 ->withDescription(
"Some description describing the aggregates attached.")
26 ->withProperties([
"Property 1" =>
"Content 1",
"Property 2" =>
"Content 2"])
27 ->withAggregateNotifications([$generic_item1, $generic_item1]);
30 return $renderer->render($generic_item2);