ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ 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\MetaBar\Factory
;
22
23
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
24
use
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
;
25
use
ILIAS\UI\Component\Symbol\Symbol
;
26
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
27
use
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
;
28
32
class
TopLinkItem
extends
AbstractBaseItem
implements
33
isItem
,
34
hasTitle
,
35
hasSymbol
,
36
hasContentLanguage
,
37
hasLanguageForTargetedResource
,
38
isDecorateable
39
{
40
use
ContentLanguage
;
41
use
ComponentDecoratorTrait
;
42
use
LanguageForTargetedResource
;
43
44
protected
?
Symbol
$symbol
=
null
;
45
protected
string
$title
=
""
;
46
protected
string
$action
=
""
;
47
51
public
function
__construct
(
IdentificationInterface
$provider_identification)
52
{
53
parent::__construct
($provider_identification);
54
$this->
renderer
=
new
TopLinkItemRenderer
();
55
}
56
57
public
function
withAction
(
string
$action
): self
58
{
59
$clone = clone($this);
60
$clone->action =
$action
;
61
62
return
$clone;
63
}
64
65
public
function
getAction
(): string
66
{
67
return
$this->action
;
68
}
69
73
public
function
withSymbol
(
Symbol
$symbol
):
hasSymbol
74
{
75
$clone = clone($this);
76
$clone->symbol =
$symbol
;
77
78
return
$clone;
79
}
80
84
public
function
getSymbol
():
Symbol
85
{
86
return
$this->symbol
;
87
}
88
92
public
function
hasSymbol
(): bool
93
{
94
return
($this->
symbol
instanceof
Symbol
);
95
}
96
100
public
function
withTitle
(
string
$title
):
hasTitle
101
{
102
$clone = clone($this);
103
$clone->title =
$title
;
104
105
return
$clone;
106
}
107
111
public
function
getTitle
(): string
112
{
113
return
$this->title
;
114
}
115
}
renderer
renderer()
Definition:
UITestHelper.php:69
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
Class TopLinkItemRenderer.
Definition:
TopLinkItemRenderer.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Definition:
AbstractBaseItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem
Definition:
TopLinkItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:57
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\hasSymbol
hasSymbol()
@inheritDoc
Definition:
TopLinkItem.php:92
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getSymbol
getSymbol()
@inheritDoc
Definition:
TopLinkItem.php:84
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withTitle
withTitle(string $title)
@inheritDoc
Definition:
TopLinkItem.php:100
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:65
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$symbol
Symbol $symbol
Definition:
TopLinkItem.php:44
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$action
string $action
Definition:
TopLinkItem.php:46
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getTitle
getTitle()
@inheritDoc
Definition:
TopLinkItem.php:111
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:45
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\__construct
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition:
TopLinkItem.php:51
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withSymbol
withSymbol(Symbol $symbol)
@inheritDoc
Definition:
TopLinkItem.php:73
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasContentLanguage
Definition:
hasContentLanguage.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasLanguageForTargetedResource
Definition:
hasLanguageForTargetedResource.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:28
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:30
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:30
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:21
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LanguageForTargetedResource
trait LanguageForTargetedResource
Definition:
LanguageForTargetedResource.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
trait ComponentDecoratorTrait
Definition:
ComponentDecoratorTrait.php:32
ILIAS\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:215
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
TopLinkItem.php
Generated on Wed Apr 8 2026 23:04:54 for ILIAS by
1.9.4 (using
Doxyfile
)