ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
SignalGenerator.php
Go to the documentation of this file.
1
<?php
2
namespace
ILIAS\UI\Implementation\Component
;
3
10
class
SignalGenerator
implements
SignalGeneratorInterface
11
{
12
const
PREFIX
=
'il_signal_'
;
13
17
public
function
create
($class =
''
)
18
{
19
$id
= $this->
createId
();
20
$instance = ($class) ?
new
$class(
$id
) :
new
Signal
(
$id
);
21
return
$instance;
22
}
23
27
protected
function
createId
()
28
{
29
return
str_replace(
"."
,
"_"
, uniqid(self::PREFIX,
true
));
30
}
31
}
ILIAS\UI\Implementation\Component
$id
if(!array_key_exists('StateId', $_REQUEST)) $id
Definition:
expirywarning.php:14
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:11
ILIAS\UI\Implementation\Component\SignalGenerator
Definition:
SignalGenerator.php:10
ILIAS\UI\Implementation\Component\SignalGenerator\create
create($class='')
Create a signal, each created signal MUST have a unique ID.Fully qualified class name (including name...
Definition:
SignalGenerator.php:17
ILIAS\UI\Component\Signal
Definition:
Signal.php:13
ILIAS\UI\Implementation\Component\SignalGenerator\createId
createId()
Definition:
SignalGenerator.php:27
ILIAS\UI\Implementation\Component\SignalGenerator\PREFIX
const PREFIX
Definition:
SignalGenerator.php:12
src
UI
Implementation
Component
SignalGenerator.php
Generated on Sat Jan 18 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)