ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
46
protected
$is_external_action
=
false
;
47
51
protected
$title
=
''
;
52
56
protected
$action
=
''
;
57
62
public
function
withTitle
(
string
$title
) :
hasTitle
63
{
64
$clone = clone($this);
65
$clone->title =
$title
;
66
67
return
$clone;
68
}
69
73
public
function
getTitle
() : string
74
{
75
return
$this->title
;
76
}
77
82
public
function
withAction
(
string
$action
) :
hasAction
83
{
84
$clone = clone($this);
85
$clone->action =
$action
;
86
87
return
$clone;
88
}
89
93
public
function
getAction
() : string
94
{
95
return
$this->action
;
96
}
97
102
public
function
withIsLinkToExternalAction
(
bool
$is_external) :
hasAction
103
{
104
$clone = clone $this;
105
$clone->is_external_action = $is_external;
106
107
return
$clone;
108
}
109
113
public
function
isLinkWithExternalAction
() : bool
114
{
115
return
$this->is_external_action
;
116
}
117
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:62
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:27
isTopItem
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:37
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:93
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
$title
Definition:
TopLinkItem.php:51
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:113
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:82
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:102
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\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:66
hasAction
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
$is_external_action
Definition:
TopLinkItem.php:46
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:73
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
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:29
isInterchangeableItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
$action
Definition:
TopLinkItem.php:56
src
GlobalScreen
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Tue Sep 2 2025 21:01:43 for ILIAS by
1.8.13 (using
Doxyfile
)