ILIAS
trunk Revision v11.0_alpha-1723-g8e69f309bab
◀ 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
hasActionTrait.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\Footer\Factory
;
22
23
use
ILIAS\Data\URI
;
24
use
ILIAS\UI\Component\Signal
;
25
29
trait
hasActionTrait
30
{
31
protected
URI
|
Signal
$action;
32
33
protected
bool
$open_in_new_viewport
=
false
;
34
35
public
function
withAction
(
URI
|
Signal
$action): self
36
{
37
$clone = clone $this;
38
$clone->action = $action;
39
return
$clone;
40
}
41
42
public
function
getAction
():
URI
|
Signal
43
{
44
return
$this->action;
45
}
46
47
public
function
withOpenInNewViewport
(
bool
$state)
48
{
49
$clone = clone $this;
50
$clone->open_in_new_viewport = $state;
51
return
$clone;
52
}
53
54
public
function
mustOpenInNewViewport
(): bool
55
{
56
if
($this->action instanceof
Signal
) {
57
return
false
;
58
}
59
return
$this->open_in_new_viewport
;
60
}
61
}
ILIAS\GlobalScreen\Scope\Footer\Factory\mustOpenInNewViewport
mustOpenInNewViewport()
Definition:
hasActionTrait.php:54
ILIAS\GlobalScreen\Scope\Footer\Factory\withAction
withAction(URI|Signal $action)
Definition:
hasActionTrait.php:35
ILIAS\GlobalScreen\Scope\Footer\Factory\withOpenInNewViewport
withOpenInNewViewport(bool $state)
Definition:
hasActionTrait.php:47
ILIAS\GlobalScreen\Scope\Footer\Factory\$open_in_new_viewport
bool $open_in_new_viewport
Definition:
hasActionTrait.php:33
hasActionTrait
ILIAS\GlobalScreen\Scope\Footer\Factory\getAction
getAction()
Definition:
hasActionTrait.php:42
ILIAS\Data\URI
ILIAS\GlobalScreen\Scope\Footer\Factory
Definition:
AbstractBaseItem.php:21
Signal
components
ILIAS
GlobalScreen
src
Scope
Footer
Factory
hasActionTrait.php
Generated on Sun Apr 6 2025 23:03:20 for ILIAS by
1.8.13 (using
Doxyfile
)