ILIAS
trunk Revision v12.0_alpha-1221-g4e438232683
◀ 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\ComponentDecoratorTrait
;
33
37
class
TopLinkItem
extends
AbstractChildItem
implements
38
hasTitle
,
39
hasAction
,
40
isTopItem
,
41
hasSymbol
,
42
isInterchangeableItem
,
43
isDecorateable
44
{
45
use
hasSymbolTrait
;
46
use isInterchangeableItemTrait;
47
use
ComponentDecoratorTrait
;
48
49
protected
bool
$is_external_action
=
false
;
50
51
protected
string
$title
=
''
;
52
53
protected
string
$action
=
''
;
54
55
public
function
withTitle
(
string
$title
):
hasTitle
56
{
57
$clone = clone($this);
58
$clone->title =
$title
;
59
60
return
$clone;
61
}
62
63
public
function
getTitle
(): string
64
{
65
return
$this->title
;
66
}
67
68
public
function
withAction
(
string
$action
):
hasAction
69
{
70
$clone = clone($this);
71
$clone->action =
$action
;
72
73
return
$clone;
74
}
75
76
public
function
getAction
(): string
77
{
78
return
$this->action
;
79
}
80
84
public
function
withIsLinkToExternalAction
(
bool
$is_external):
hasAction
85
{
86
$clone = clone $this;
87
$clone->is_external_action = $is_external;
88
89
return
$clone;
90
}
91
92
public
function
isLinkWithExternalAction
(): bool
93
{
94
return
$this->is_external_action
;
95
}
96
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:31
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Definition:
TopLinkItem.php:44
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:68
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:84
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:92
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:63
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:51
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
string $action
Definition:
TopLinkItem.php:53
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
bool $is_external_action
Definition:
TopLinkItem.php:49
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:55
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:76
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:28
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:28
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:29
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:28
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:30
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:33
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
@inheritDoc
Definition:
hasSymbolTrait.php:64
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
trait ComponentDecoratorTrait
Definition:
ComponentDecoratorTrait.php:32
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Sun Apr 5 2026 23:03:05 for ILIAS by
1.9.4 (using
Doxyfile
)