ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
with_main_link_action.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  $main_action = $f->link()->standard("Open ILIAS", "https://www.ilias.de");
16  $app_item = $f->item()->standard("Item Title")
17  ->withMainAction($main_action)
18  ->withProperties(array(
19  "Origin" => "Course Title 1",
20  "Last Update" => "24.11.2011",
21  "Location" => "Room 123, Main Street 44, 3012 Bern"))
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  return $renderer->render($app_item);
24 }
global $DIC
Definition: feed.php:28