ILIAS
trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
SystemInfo.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\MainControls
;
22
23
use
ILIAS\Data\URI
;
24
use
ILIAS\UI\Component\MainControls
;
25
use
ILIAS\UI\Component\Signal
;
26
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
27
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
28
use
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
;
29
use
InvalidArgumentException
;
30
35
class
SystemInfo
implements
MainControls\SystemInfo
36
{
37
use
ComponentHelper
;
38
use
JavaScriptBindable
;
39
40
protected
string
$head_line
;
41
protected
string
$information_text
;
42
protected
?
URI
$dismiss_action
=
null
;
43
protected
string
$denotation
= self::DENOTATION_NEUTRAL;
44
protected
Signal
$close_signal
;
45
protected
SignalGeneratorInterface
$signal_generator
;
46
47
public
function
__construct
(
SignalGeneratorInterface
$signal_generator,
string
$head_line,
string
$information_text)
48
{
49
$this->signal_generator =
$signal_generator
;
50
$this->head_line =
$head_line
;
51
$this->information_text =
$information_text
;
52
$this->
initSignals
();
53
}
54
55
protected
function
initSignals
(): void
56
{
57
$this->close_signal = $this->signal_generator->create();
58
}
59
60
public
function
getHeadLine
(): string
61
{
62
return
$this->head_line
;
63
}
64
65
public
function
getInformationText
(): string
66
{
67
return
$this->information_text
;
68
}
69
70
public
function
isDismissable
(): bool
71
{
72
return
!is_null($this->dismiss_action);
73
}
74
75
public
function
getDismissAction
():
URI
76
{
77
return
$this->dismiss_action
;
78
}
79
80
public
function
withDismissAction
(?
URI
$uri): MainControls\
SystemInfo
81
{
82
$clone = clone $this;
83
$clone->dismiss_action = $uri;
84
return
$clone;
85
}
86
87
public
function
withDenotation
(
string
$denotation): MainControls\
SystemInfo
88
{
89
if
(
90
$denotation !== MainControls\SystemInfo::DENOTATION_NEUTRAL
91
&& $denotation !== MainControls\SystemInfo::DENOTATION_IMPORTANT
92
&& $denotation !== MainControls\SystemInfo::DENOTATION_BREAKING
93
) {
94
throw
new
InvalidArgumentException
(
"Unknown denotation '$denotation'"
);
95
}
96
97
$clone = clone $this;
98
$clone->denotation =
$denotation
;
99
return
$clone;
100
}
101
102
public
function
getDenotation
(): string
103
{
104
return
$this->denotation
;
105
}
106
107
public
function
getCloseSignal
():
Signal
108
{
109
return
$this->close_signal
;
110
}
111
115
public
function
withResetSignals
():
SystemInfo
116
{
117
$clone = clone $this;
118
$clone->initSignals();
119
return
$clone;
120
}
121
}
ILIAS\UI\Component\MainControls
Definition:
Factory.php:21
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getCloseSignal
getCloseSignal()
Definition:
SystemInfo.php:107
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getDismissAction
getDismissAction()
Definition:
SystemInfo.php:75
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withDenotation
withDenotation(string $denotation)
Definition:
SystemInfo.php:87
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$close_signal
Signal $close_signal
Definition:
SystemInfo.php:44
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$information_text
string $information_text
Definition:
SystemInfo.php:41
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:28
ILIAS\UI\Component\MainControls\SystemInfo
Interface SystemInfo.
Definition:
SystemInfo.php:33
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getDenotation
getDenotation()
Definition:
SystemInfo.php:102
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$head_line
string $head_line
Definition:
SystemInfo.php:40
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withDismissAction
withDismissAction(?URI $uri)
Definition:
SystemInfo.php:80
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\__construct
__construct(SignalGeneratorInterface $signal_generator, string $head_line, string $information_text)
Definition:
SystemInfo.php:47
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$denotation
string $denotation
Definition:
SystemInfo.php:43
ILIAS\Data\URI
ComponentHelper
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\initSignals
initSignals()
Definition:
SystemInfo.php:55
SignalGeneratorInterface
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\isDismissable
isDismissable()
Definition:
SystemInfo.php:70
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getHeadLine
getHeadLine()
Definition:
SystemInfo.php:60
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$dismiss_action
URI $dismiss_action
Definition:
SystemInfo.php:42
InvalidArgumentException
ILIAS\UI\Implementation\Component\MainControls
Definition:
Factory.php:21
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withResetSignals
withResetSignals()
Definition:
SystemInfo.php:115
Signal
ComponentHelper
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getInformationText
getInformationText()
Definition:
SystemInfo.php:65
ILIAS\UI\Implementation\Component\MainControls\SystemInfo
Class SystemInfo.
Definition:
SystemInfo.php:35
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$signal_generator
SignalGeneratorInterface $signal_generator
Definition:
SystemInfo.php:45
components
ILIAS
UI
src
Implementation
Component
MainControls
SystemInfo.php
Generated on Mon Apr 7 2025 23:04:46 for ILIAS by
1.8.13 (using
Doxyfile
)