ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
base.php
Go to the documentation of this file.
1 <?php
2 function base()
3 {
4  global $DIC;
5  $factory = $DIC->ui()->factory();
6  $renderer = $DIC->ui()->renderer();
7 
8  $message = 'Here you see an interruptive Item:';
9  $icon = $factory->image()->standard('./templates/default/images/icon_crs.svg', '');
10  $modal = $factory->modal()->interruptive('My Title', $message, "#")
11  ->withAffectedItems(array(
12  $factory->modal()->interruptiveItem(
13  10,
14  'Title of the Item',
15  $icon,
16  'Note, this item is currently only to be used in interruptive Modal.'
17  ),
18  $factory->modal()->interruptiveItem(
19  20,
20  'Title of the other Item',
21  $icon,
22  'And another one.'
23  )
24 
25  ));
26  $button = $factory->button()->standard('Show an interruptive Item', '')
27  ->withOnClick($modal->getShowSignal());
28 
29 
30  return $renderer->render([$button, $modal]);
31 }
base()
Definition: base.php:4
$DIC
Definition: xapitoken.php:46
$message
Definition: xapiexit.php:14
$factory
Definition: metadata.php:58