ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Item\Notification
;
22
33
function
base
()
34
{
35
global
$DIC
;
36
$f
= $DIC->ui()->factory();
37
$renderer
= $DIC->ui()->renderer();
38
39
//Creating a Mail Notification Item
40
$mail_icon =
$f
->symbol()->icon()->standard(
"mail"
,
"mail"
);
41
$mail_title =
$f
->link()->standard(
"Inbox"
,
"#"
);
42
$mail_notification_item =
$f
->item()->notification($mail_title, $mail_icon)
43
->withDescription(
"You have 23 unread mails in your inbox"
)
44
->withProperties([
"Time"
=>
"3 days ago"
]);
45
46
47
return
$renderer
->render($mail_notification_item);
48
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\UI\examples\Item\Notification\base
base()
description: > Example for rendering a notification item.
Definition:
base.php:33
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Item\Notification
Definition:
base.php:21
components
ILIAS
UI
src
examples
Item
Notification
base.php
Generated on Sun Aug 31 2025 23:04:09 for ILIAS by
1.8.13 (using
Doxyfile
)