ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
SystemInfo.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\UI\Implementation\Component\MainControls
;
4
5
use
ILIAS\Data\URI
;
6
use
ILIAS\UI\Component\MainControls
;
7
use
ILIAS\UI\Component\Signal
;
8
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
9
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
10
use
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
;
11
16
class
SystemInfo
implements
MainControls\SystemInfo
17
{
18
use
ComponentHelper
;
19
use
JavaScriptBindable
;
20
24
protected
$head_line
;
25
29
protected
$information_text
;
30
34
protected
$dismiss_action
= null;
35
39
protected
$denotation
= self::DENOTATION_NEUTRAL;
40
44
protected
$close_signal
;
45
49
protected
$signal_generator
;
50
57
public
function
__construct
(
SignalGeneratorInterface
$signal_generator,
string
$head_line,
string
$information_text)
58
{
59
$this->signal_generator = $signal_generator;
60
$this->head_line = $head_line;
61
$this->information_text = $information_text;
62
$this->
initSignals
();
63
}
64
65
protected
function
initSignals
() : void
66
{
67
$this->close_signal = $this->signal_generator->create();
68
}
69
70
public
function
getHeadLine
() : string
71
{
72
return
$this->head_line;
73
}
74
75
public
function
getInformationText
() : string
76
{
77
return
$this->information_text;
78
}
79
80
public
function
isDismissable
() : bool
81
{
82
return
!is_null($this->dismiss_action);
83
}
84
85
public
function
getDismissAction
() :
URI
86
{
87
return
$this->dismiss_action;
88
}
89
90
public
function
withDismissAction
(?
URI
$uri) : \
ILIAS
\
UI
\
Component
\MainControls\
SystemInfo
91
{
92
$clone = clone $this;
93
$clone->dismiss_action = $uri;
94
return
$clone;
95
}
96
97
public
function
withDenotation
(
string
$denotation) : \
ILIAS
\
UI
\
Component
\MainControls\
SystemInfo
98
{
99
if
(
100
$denotation !== MainControls\
SystemInfo::DENOTATION_NEUTRAL
101
&& $denotation !== MainControls\
SystemInfo::DENOTATION_IMPORTANT
102
&& $denotation !== MainControls\
SystemInfo::DENOTATION_BREAKING
103
) {
104
throw
new \InvalidArgumentException(
"Unknown denotation '$denotation'"
);
105
}
106
107
$clone = clone $this;
108
$clone->denotation = $denotation;
109
return
$clone;
110
}
111
112
public
function
getDenotation
() : string
113
{
114
return
$this->denotation;
115
}
116
120
public
function
getCloseSignal
() :
Signal
121
{
122
return
$this->close_signal;
123
}
124
128
public
function
withResetSignals
()
129
{
130
$clone = clone $this;
131
$clone->initSignals();
132
return
$clone;
133
}
134
}
ILIAS\UI\Component\MainControls
Definition:
Factory.php:5
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$denotation
$denotation
Definition:
SystemInfo.php:39
UI
Class Factory.
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$head_line
$head_line
Definition:
SystemInfo.php:24
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getCloseSignal
getCloseSignal()
Definition:
SystemInfo.php:120
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getDismissAction
getDismissAction()
Definition:
SystemInfo.php:85
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withDenotation
withDenotation(string $denotation)
Definition:
SystemInfo.php:97
ILIAS\UI\Component\MainControls\SystemInfo\DENOTATION_IMPORTANT
const DENOTATION_IMPORTANT
Definition:
SystemInfo.php:17
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$signal_generator
$signal_generator
Definition:
SystemInfo.php:49
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$information_text
$information_text
Definition:
SystemInfo.php:29
ILIAS
Class ChatMainBarProvider .
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:12
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$dismiss_action
$dismiss_action
Definition:
SystemInfo.php:34
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:9
ILIAS\UI\Component\MainControls\SystemInfo\DENOTATION_NEUTRAL
const DENOTATION_NEUTRAL
Definition:
SystemInfo.php:16
ILIAS\UI\Component\MainControls\SystemInfo
Interface SystemInfo.
Definition:
SystemInfo.php:14
ILIAS\Data\URI
The scope of this class is split ilias-conform URI's into components.
Definition:
URI.php:17
ILIAS\UI\Component\MainControls\SystemInfo\DENOTATION_BREAKING
const DENOTATION_BREAKING
Definition:
SystemInfo.php:18
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getDenotation
getDenotation()
Definition:
SystemInfo.php:112
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withDismissAction
withDismissAction(?URI $uri)
Definition:
SystemInfo.php:90
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\__construct
__construct(SignalGeneratorInterface $signal_generator, string $head_line, string $information_text)
SystemInfo constructor.
Definition:
SystemInfo.php:57
ILIAS\UI\Component\Signal
Definition:
Signal.php:13
URI
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\initSignals
initSignals()
Definition:
SystemInfo.php:65
SignalGeneratorInterface
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\isDismissable
isDismissable()
Definition:
SystemInfo.php:80
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\$close_signal
$close_signal
Definition:
SystemInfo.php:44
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getHeadLine
getHeadLine()
Definition:
SystemInfo.php:70
ILIAS\UI\Implementation\Component\MainControls
Definition:
Factory.php:4
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\withResetSignals
withResetSignals()
Definition:
SystemInfo.php:128
Signal
ILIAS\UI\Implementation\Component\MainControls\SystemInfo\getInformationText
getInformationText()
Definition:
SystemInfo.php:75
src
UI
Implementation
Component
MainControls
SystemInfo.php
Generated on Mon Apr 14 2025 21:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)