ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
with_list_actions.php
Go to the documentation of this file.
1 <?php
5 function with_list_actions()
6 {
7  global $DIC;
8  $f = $DIC->ui()->factory();
9  $renderer = $DIC->ui()->renderer();
10  $actions = $f->dropdown()->standard(array(
11  $f->button()->shy("ILIAS", "https://www.ilias.de"),
12  $f->button()->shy("GitHub", "https://www.github.com")
13  ));
14  $list_item1 = $f->item()->standard("Item Title")
15  ->withProperties(array(
16  "Origin" => "Course Title 1",
17  "Last Update" => "24.11.2011",
18  "Location" => "Room 123, Main Street 44, 3012 Bern"))
19  ->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.");
20 
21  $list_item2 = $f->item()->standard("Item 2 Title")
22  ->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.");
23 
24  $list_item3 = $f->item()->standard("Item 3 Title")
25  ->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.");
26 
27  $std_list = $f->panel()->listing()->standard("List Title", array(
28  $f->item()->group("Subtitle 1", array(
29  $list_item1,
30  $list_item2
31  )),
32  $f->item()->group("Subtitle 2", array(
33  $list_item3
34  ))
35  ))->withActions($actions);
36 
37 
38  return $renderer->render($std_list);
39 }
global $DIC
Definition: saml.php:7
with_list_actions()
With list actions.
Create styles array
The data for the language used.