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
Link.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2017 Alexander Killing <killing@leifos.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Link
;
6
7
use
ILIAS\UI\Component
as
C
;
8
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
9
13
abstract
class
Link
implements
C\Link\Link
14
{
15
use
ComponentHelper
;
16
20
protected
$action
;
21
25
protected
$open_in_new_viewport
;
26
27
public
function
__construct
(
$action
)
28
{
29
$this->
checkStringArg
(
"action"
,
$action
);
30
$this->action =
$action
;
31
}
32
36
public
function
getAction
()
37
{
38
return
$this->action
;
39
}
40
44
public
function
withOpenInNewViewport
(
$open_in_new_viewport
)
45
{
46
$clone = clone $this;
47
$clone->open_in_new_viewport = (bool)
$open_in_new_viewport
;
48
return
$clone;
49
}
50
54
public
function
getOpenInNewViewport
()
55
{
56
return
$this->open_in_new_viewport
;
57
}
58
}
ILIAS\UI\Implementation\Component\Link
Definition:
Bulky.php:7
ILIAS\UI\Implementation\Component\Link\Link\$open_in_new_viewport
$open_in_new_viewport
Definition:
Link.php:25
ILIAS\UI\Implementation\Component\Link\Link\withOpenInNewViewport
withOpenInNewViewport($open_in_new_viewport)
Definition:
Link.php:44
ILIAS\UI\Implementation\Component\Link\Link\__construct
__construct($action)
Definition:
Link.php:27
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\checkStringArg
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
Definition:
ComponentHelper.php:92
ILIAS\UI\Implementation\Component\Link\Link
This implements commonalities between Links.
Definition:
Link.php:13
ILIAS\UI\Implementation\Component\Link\Link\getAction
getAction()
Definition:
Link.php:36
ILIAS\UI\Implementation\Component\Link\Link\$action
$action
Definition:
Link.php:20
ILIAS\UI\Implementation\Component\Link\Link\getOpenInNewViewport
getOpenInNewViewport()
Definition:
Link.php:54
src
UI
Implementation
Component
Link
Link.php
Generated on Sat Apr 12 2025 21:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)