ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
Factory.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Toast
;
22
23
use
ILIAS\UI\Component\Symbol\Icon\Icon
;
24
use
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
;
25
26
class
Factory
implements
\ILIAS\UI\Component\Toast\Factory
27
{
28
protected
SignalGeneratorInterface
$signal_generator
;
29
30
public
function
__construct
(
SignalGeneratorInterface
$signal_generator)
31
{
32
$this->signal_generator =
$signal_generator
;
33
}
34
35
public
function
standard
($title,
Icon
$icon):
Toast
36
{
37
return
new
Toast
($title, $icon, $this->signal_generator);
38
}
39
40
public
function
container
():
Container
41
{
42
return
new
Container
();
43
}
44
}
ILIAS\UI\Implementation\Component\Toast\Factory\standard
standard($title, Icon $icon)
description: purpose: Standard Toasts display a normal toast inside a toast container.
Definition:
Factory.php:35
Standard
ILIAS\UI\Implementation\Component\Toast\Factory\$signal_generator
SignalGeneratorInterface $signal_generator
Definition:
Factory.php:28
Icon
ILIAS\UI\Implementation\Component\Toast\Container
Definition:
Container.php:26
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:28
ILIAS\UI\Implementation\Component\Toast\Factory
Definition:
Factory.php:26
ILIAS\UI\Implementation\Component\Toast\Toast
Definition:
Toast.php:32
SignalGeneratorInterface
ILIAS\UI\Implementation\Component\Toast
Definition:
Container.php:21
ILIAS\UI\Implementation\Component\Toast\Factory\__construct
__construct(SignalGeneratorInterface $signal_generator)
Definition:
Factory.php:30
ILIAS\UI\Implementation\Component\Toast\Factory\container
container()
description: purpose: Toasts Containers display Toasts on the ILIAS page.
Definition:
Factory.php:40
components
ILIAS
UI
src
Implementation
Component
Toast
Factory.php
Generated on Mon Sep 1 2025 23:02:09 for ILIAS by
1.8.13 (using
Doxyfile
)