ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
TopLinkItem.php
Go to the documentation of this file.
1
<?
php
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
;
2
3
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractBaseItem
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
7
13
class
TopLinkItem
extends
AbstractBaseItem
implements
hasTitle
,
hasAction
,
isTopItem
14
{
15
19
protected
$is_external_action
=
false
;
23
protected
$title
=
''
;
27
protected
$action
=
''
;
28
29
35
public
function
withTitle
(
string
$title
) :
hasTitle
36
{
37
$clone = clone($this);
38
$clone->title =
$title
;
39
40
return
$clone;
41
}
42
43
47
public
function
getTitle
() : string
48
{
49
return
$this->title
;
50
}
51
52
58
public
function
withAction
(
string
$action
) :
hasAction
59
{
60
$clone = clone($this);
61
$clone->action =
$action
;
62
63
return
$clone;
64
}
65
66
70
public
function
getAction
() : string
71
{
72
return
$this->action
;
73
}
74
75
81
public
function
withIsLinkToExternalAction
(
bool
$is_external) :
hasAction
82
{
83
$clone = clone $this;
84
$clone->is_external_action = $is_external;
85
86
return
$clone;
87
}
88
89
93
public
function
isLinkWithExternalAction
() : bool
94
{
95
return
$this->is_external_action
;
96
}
97
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:35
isTopItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:70
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
$title
Definition:
TopLinkItem.php:23
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:1
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:12
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:93
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:58
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:81
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:8
hasAction
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
$is_external_action
Definition:
TopLinkItem.php:19
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:47
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:13
AbstractBaseItem
php
hasTitle
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
$action
Definition:
TopLinkItem.php:27
src
GlobalScreen
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Thu Jan 16 2025 19:02:37 for ILIAS by
1.8.13 (using
Doxyfile
)