ILIAS
release_8 Revision v8.23
◀ 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\SymbolDecoratorTrait
;
32
37
class
TopLinkItem
extends
AbstractChildItem
implements
hasTitle
,
hasAction
,
isTopItem
,
hasSymbol
,
isInterchangeableItem
38
{
39
use
SymbolDecoratorTrait
;
40
use
hasSymbolTrait
;
41
use
isInterchangeableItemTrait
;
42
43
protected
bool
$is_external_action
=
false
;
44
45
protected
string
$title
=
''
;
46
47
protected
string
$action
=
''
;
48
53
public
function
withTitle
(
string
$title):
hasTitle
54
{
55
$clone = clone($this);
56
$clone->title =
$title
;
57
58
return
$clone;
59
}
60
64
public
function
getTitle
(): string
65
{
66
return
$this->title
;
67
}
68
73
public
function
withAction
(
string
$action):
hasAction
74
{
75
$clone = clone($this);
76
$clone->action =
$action
;
77
78
return
$clone;
79
}
80
84
public
function
getAction
(): string
85
{
86
return
$this->action
;
87
}
88
93
public
function
withIsLinkToExternalAction
(
bool
$is_external):
hasAction
94
{
95
$clone = clone $this;
96
$clone->is_external_action = $is_external;
97
98
return
$clone;
99
}
100
104
public
function
isLinkWithExternalAction
(): bool
105
{
106
return
$this->is_external_action
;
107
}
108
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:53
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:27
isTopItem
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:38
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:84
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:104
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:73
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:93
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:47
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:43
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Interface hasSymbol Methods for Entries with Symbols.
Definition:
hasSymbol.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:64
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:37
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:45
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:29
isInterchangeableItem
src
GlobalScreen
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Mon Sep 1 2025 22:02:56 for ILIAS by
1.8.13 (using
Doxyfile
)