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