ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
with_aggregates.php File Reference

Go to the source code of this file.

Functions

 with_aggregates ()
 

Function Documentation

◆ with_aggregates()

with_aggregates ( )

Definition at line 2 of file with_aggregates.php.

3{
4 global $DIC;
5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
7 $close_url = $_SERVER['REQUEST_URI'];
8
9 //Some generic notification Items
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"])
15 ->withActions(
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")
19 ])
20 )
21 ->withCloseAction($close_url);
22
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]);
28
29
30 return $renderer->render($generic_item2);
31}
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$DIC
Definition: xapitoken.php:46

References $_SERVER, $DIC, and Vendor\Package\$f.