ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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\AbstractChildItem
;
4
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
;
5
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
6
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
;
7
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
8
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
;
9
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait
;
10
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
11
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\SymbolDecoratorTrait
;
12
17
class
TopLinkItem
extends
AbstractChildItem
implements
hasTitle
,
hasAction
,
isTopItem
,
hasSymbol
,
isInterchangeableItem
18
{
19
use
SymbolDecoratorTrait
;
20
use
hasSymbolTrait
;
21
use
isInterchangeableItemTrait
;
22
26
protected
$is_external_action
=
false
;
30
protected
$title
=
''
;
34
protected
$action
=
''
;
35
40
public
function
withTitle
(
string
$title
) :
hasTitle
41
{
42
$clone = clone($this);
43
$clone->title =
$title
;
44
45
return
$clone;
46
}
47
51
public
function
getTitle
() : string
52
{
53
return
$this->title
;
54
}
55
60
public
function
withAction
(
string
$action
) :
hasAction
61
{
62
$clone = clone($this);
63
$clone->action =
$action
;
64
65
return
$clone;
66
}
67
71
public
function
getAction
() : string
72
{
73
return
$this->action
;
74
}
75
80
public
function
withIsLinkToExternalAction
(
bool
$is_external) :
hasAction
81
{
82
$clone = clone $this;
83
$clone->is_external_action = $is_external;
84
85
return
$clone;
86
}
87
91
public
function
isLinkWithExternalAction
() : bool
92
{
93
return
$this->is_external_action
;
94
}
95
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:40
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:8
isTopItem
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:71
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
$title
Definition:
TopLinkItem.php:30
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:1
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:91
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:60
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:80
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:44
hasAction
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
$is_external_action
Definition:
TopLinkItem.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Interface hasSymbol Methods for Entries with Symbols.
Definition:
hasSymbol.php:11
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:51
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:8
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:10
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:17
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:18
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:10
isInterchangeableItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
$action
Definition:
TopLinkItem.php:34
src
GlobalScreen
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)