ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Signal.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component
;
22
29
class
Signal
implements
\ILIAS\UI\Component\Signal
30
{
31
protected
string
$id
;
32
protected
array
$options
= array();
33
34
public
function
__construct
(
string
$id
)
35
{
36
$this->
id
=
$id
;
37
}
38
42
public
function
getId
(): string
43
{
44
return
$this->id
;
45
}
46
47
public
function
getOptions
(): array
48
{
49
return
$this->options;
50
}
51
55
public
function
addOption
(
string
$key, $value): void
56
{
57
$this->options[$key] = $value;
58
}
59
63
protected
function
getOption
(
string
$key)
64
{
65
return
(isset($this->options[$key])) ? $this->options[$key] :
null
;
66
}
67
68
public
function
__toString
(): string
69
{
70
return
$this->id
;
71
}
72
}
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\UI\Implementation\Component\Signal\__toString
__toString()
Definition:
Signal.php:68
ILIAS\UI\Implementation\Component\Signal\addOption
addOption(string $key, $value)
Definition:
Signal.php:55
ILIAS\UI\Implementation\Component\Signal\$id
string $id
Definition:
Signal.php:31
ILIAS\UI\Implementation\Component\Signal\getId
getId()
Get the ID of this signal.
Definition:
Signal.php:42
ILIAS\UI\Implementation\Component\Signal\__construct
__construct(string $id)
Definition:
Signal.php:34
ILIAS\UI\Implementation\Component\Signal\getOptions
getOptions()
Get the options of this signal.
Definition:
Signal.php:47
ILIAS\UI\Implementation\Component\Signal\getOption
getOption(string $key)
Definition:
Signal.php:63
ILIAS\UI\Implementation\Component\Signal\$options
array $options
Definition:
Signal.php:32
ILIAS\UI\Component\Signal
Definition:
Signal.php:33
ILIAS\UI\Implementation\Component
components
ILIAS
UI
src
Implementation
Component
Signal.php
Generated on Sat Oct 18 2025 23:04:39 for ILIAS by
1.9.4 (using
Doxyfile
)