ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
TopLinkItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
;
24
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
;
25
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
26
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
;
27
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
28
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
;
29
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait
;
30
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
31
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
32
use
ILIAS\GlobalScreen\Scope\TriggererDecoratorTrait
;
33
37
class
TopLinkItem
extends
AbstractChildItem
implements
38
hasTitle
,
39
hasAction
,
40
isTopItem
,
41
hasSymbol
,
42
isInterchangeableItem
43
{
44
use
hasSymbolTrait
;
45
use
isInterchangeableItemTrait
;
46
47
protected
bool
$is_external_action
=
false
;
48
49
protected
string
$title
=
''
;
50
51
protected
string
$action
=
''
;
52
57
public
function
withTitle
(
string
$title):
hasTitle
58
{
59
$clone = clone($this);
60
$clone->title =
$title
;
61
62
return
$clone;
63
}
64
68
public
function
getTitle
(): string
69
{
70
return
$this->title
;
71
}
72
77
public
function
withAction
(
string
$action):
hasAction
78
{
79
$clone = clone($this);
80
$clone->action =
$action
;
81
82
return
$clone;
83
}
84
88
public
function
getAction
(): string
89
{
90
return
$this->action
;
91
}
92
97
public
function
withIsLinkToExternalAction
(
bool
$is_external):
hasAction
98
{
99
$clone = clone $this;
100
$clone->is_external_action = $is_external;
101
102
return
$clone;
103
}
104
108
public
function
isLinkWithExternalAction
(): bool
109
{
110
return
$this->is_external_action
;
111
}
112
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:57
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:27
isTopItem
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:88
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:108
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:77
TriggererDecoratorTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:97
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
string $action
Definition:
TopLinkItem.php:51
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:63
hasAction
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
bool $is_external_action
Definition:
TopLinkItem.php:47
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Definition:
hasSymbol.php:30
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:68
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:26
isDecorateable
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Definition:
TopLinkItem.php:37
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:49
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:29
isInterchangeableItem
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Wed Sep 10 2025 15:15:42 for ILIAS by
1.8.13 (using
Doxyfile
)