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

Go to the source code of this file.

Functions

 base ()
 

Function Documentation

◆ base()

base ( )

Definition at line 2 of file base.php.

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}
$factory
Definition: metadata.php:58
$message
Definition: xapiexit.php:14
$DIC
Definition: xapitoken.php:46

References $DIC, $factory, and $message.