ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
with_list_actions.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
11 {
12  global $DIC;
13  $f = $DIC->ui()->factory();
14  $renderer = $DIC->ui()->renderer();
15  $actions = $f->dropdown()->standard(array(
16  $f->button()->shy("ILIAS", "https://www.ilias.de"),
17  $f->button()->shy("GitHub", "https://www.github.com")
18  ));
19  $list_item1 = $f->item()->standard("Item Title")
20  ->withProperties(array(
21  "Origin" => "Course Title 1",
22  "Last Update" => "24.11.2011",
23  "Location" => "Room 123, Main Street 44, 3012 Bern"))
24  ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
25 
26  $list_item2 = $f->item()->standard("Item 2 Title")
27  ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
28 
29  $list_item3 = $f->item()->standard("Item 3 Title")
30  ->withDescription("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
31 
32  $std_list = $f->panel()->listing()->standard("List Title", array(
33  $f->item()->group("Subtitle 1", array(
34  $list_item1,
35  $list_item2
36  )),
37  $f->item()->group("Subtitle 2", array(
38  $list_item3
39  ))
40  ))->withActions($actions);
41 
42 
43  return $renderer->render($std_list);
44 }
global $DIC
Definition: feed.php:28