ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ 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
Popover.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\Popover
;
22
23
use
ILIAS\UI\Component
as
C
;
24
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
25
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
26
use
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
;
27
34
abstract
class
Popover
implements
C\Popover\Popover
35
{
36
use
ComponentHelper
;
37
use
JavaScriptBindable
;
38
39
protected
string
$title
=
''
;
40
protected
string
$position
= self::POS_AUTO;
41
protected
string
$ajax_content_url
=
''
;
42
protected
C\Signal
$show_signal
;
43
protected
C\ReplaceContentSignal
$replace_content_signal
;
44
protected
SignalGeneratorInterface
$signal_generator
;
45
protected
bool
$fixed_position
=
false
;
46
47
public
function
__construct
(
SignalGeneratorInterface
$signal_generator)
48
{
49
$this->signal_generator =
$signal_generator
;
50
$this->initSignals();
51
}
52
56
public
function
getTitle
(): string
57
{
58
return
$this->title
;
59
}
60
64
public
function
getPosition
(): string
65
{
66
return
$this->position
;
67
}
68
72
public
function
getAsyncContentUrl
(): string
73
{
74
return
$this->ajax_content_url
;
75
}
76
80
public
function
withVerticalPosition
():
C
\
Popover
\
Popover
81
{
82
$clone = clone $this;
83
$clone->position = self::POS_VERTICAL;
84
return
$clone;
85
}
86
90
public
function
withHorizontalPosition
():
C
\
Popover
\
Popover
91
{
92
$clone = clone $this;
93
$clone->position = self::POS_HORIZONTAL;
94
return
$clone;
95
}
96
100
public
function
withAsyncContentUrl
(
string
$url
):
C
\
Popover
\
Popover
101
{
102
$clone = clone $this;
103
$clone->ajax_content_url =
$url
;
104
return
$clone;
105
}
106
110
public
function
withTitle
(
string
$title):
C
\
Popover
\
Popover
111
{
112
$clone = clone $this;
113
$clone->title =
$title
;
114
return
$clone;
115
}
116
120
public
function
withResetSignals
():
C
\
Popover
\
Popover
121
{
122
$clone = clone $this;
123
$clone->initSignals();
124
return
$clone;
125
}
126
130
public
function
getShowSignal
():
C
\
Signal
131
{
132
return
$this->show_signal
;
133
}
134
138
public
function
getReplaceContentSignal
():
C
\
ReplaceContentSignal
139
{
140
return
$this->replace_content_signal
;
141
}
142
146
protected
function
initSignals()
147
{
148
$this->show_signal = $this->signal_generator->create();
150
$signal = $this->signal_generator->create(
"ILIAS\\UI\\Implementation\\Component\\ReplaceContentSignal"
);
151
$this->replace_content_signal = $signal;
152
}
153
157
public
function
withFixedPosition
():
C
\
Popover
\
Popover
158
{
159
$this->fixed_position =
true
;
160
161
return
$this;
162
}
163
167
public
function
isFixedPosition
(): bool
168
{
169
return
$this->fixed_position
;
170
}
171
}
ILIAS\UI\Implementation\Component\Popover\Popover\$ajax_content_url
string $ajax_content_url
Definition:
Popover.php:41
ILIAS\UI\Implementation\Component\Popover\Popover\getTitle
getTitle()
Definition:
Popover.php:56
ILIAS\UI\Implementation\Component\Popover\Popover\__construct
__construct(SignalGeneratorInterface $signal_generator)
Definition:
Popover.php:47
ILIAS\UI\Implementation\Component\Popover\Popover\getPosition
getPosition()
Definition:
Popover.php:64
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\UI\Implementation\Component\Popover\Popover\$position
string $position
Definition:
Popover.php:40
$url
$url
Definition:
shib_logout.php:66
ILIAS\UI\Implementation\Component\Popover
Definition:
Factory.php:21
ILIAS\UI\Implementation\Component\Popover\Popover\isFixedPosition
isFixedPosition()
Definition:
Popover.php:167
ILIAS\UI\Implementation\Component\Popover\Popover\$show_signal
C Signal $show_signal
Definition:
Popover.php:42
ILIAS\UI\Implementation\Component\Popover\Popover\getReplaceContentSignal
getReplaceContentSignal()
Definition:
Popover.php:138
ILIAS\UI\Component\ReplaceContentSignal
This signal replaces the content of a component by ajax.
Definition:
ReplaceContentSignal.php:30
ILIAS\UI\Implementation\Component\Popover\Popover\$replace_content_signal
C ReplaceContentSignal $replace_content_signal
Definition:
Popover.php:43
ILIAS\UI\Implementation\Component\SignalGeneratorInterface
Definition:
SignalGeneratorInterface.php:28
ILIAS\UI\Implementation\Component\Popover\Popover\$signal_generator
SignalGeneratorInterface $signal_generator
Definition:
Popover.php:44
ILIAS\UI\Implementation\Component\Popover\Popover\getAsyncContentUrl
getAsyncContentUrl()
Definition:
Popover.php:72
ILIAS\UI\Implementation\Component\Popover\Popover\withHorizontalPosition
withHorizontalPosition()
Definition:
Popover.php:90
ILIAS\UI\Implementation\Component\Popover\Popover\$title
string $title
Definition:
Popover.php:39
ILIAS\UI\Implementation\Component\Popover\Popover\withFixedPosition
withFixedPosition()
Definition:
Popover.php:157
ILIAS\UI\Implementation\Component\Popover\Popover\withVerticalPosition
withVerticalPosition()
Definition:
Popover.php:80
ILIAS\UI\Implementation\Component\Popover\Popover\withAsyncContentUrl
withAsyncContentUrl(string $url)
Definition:
Popover.php:100
ComponentHelper
ILIAS\UI\Implementation\Component\Popover\Popover\getShowSignal
getShowSignal()
Definition:
Popover.php:130
SignalGeneratorInterface
ILIAS\UI\Implementation\Component\Popover\Popover\$fixed_position
bool $fixed_position
Definition:
Popover.php:45
ILIAS\UI\Implementation\Component\Popover\Popover\withTitle
withTitle(string $title)
Definition:
Popover.php:110
Signal
ComponentHelper
ILIAS\UI\Implementation\Component\Popover\Popover
Definition:
Popover.php:34
ILIAS\UI\Implementation\Component\Popover\Popover\withResetSignals
withResetSignals()
Definition:
Popover.php:120
components
ILIAS
UI
src
Implementation
Component
Popover
Popover.php
Generated on Tue Apr 8 2025 23:04:40 for ILIAS by
1.8.13 (using
Doxyfile
)