ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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:
Factory.php:5
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:11
ILIAS\UI\Implementation\Component\checkStringArg
checkStringArg($which, $value)
Throw an InvalidArgumentException if $value is no string.
Definition:
ComponentHelper.php:90
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 Jan 18 2025 19:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)