ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
30
class
LinkItem
extends
AbstractChildItem
implements
isItem
,
hasTitle
,
hasSymbol
,
isChild
,
hasContentLanguage
,
hasLanguageForTargetedResource
31
{
32
use
ContentLanguage
;
33
use
LanguageForTargetedResource
;
34
35
protected
?
Symbol
$symbol
=
null
;
36
protected
string
$title
=
""
;
37
protected
string
$action
=
""
;
38
42
public
function
__construct
(
IdentificationInterface
$provider_identification)
43
{
44
parent::__construct
($provider_identification);
45
$this->
renderer
=
new
LinkItemRenderer
();
46
}
47
48
public
function
withAction
(
string
$action
): self
49
{
50
$clone = clone($this);
51
$clone->action =
$action
;
52
53
return
$clone;
54
}
55
59
public
function
getAction
(): string
60
{
61
return
$this->action
;
62
}
63
67
public
function
withSymbol
(
Symbol
$symbol
):
hasSymbol
68
{
69
$clone = clone($this);
70
$clone->symbol =
$symbol
;
71
72
return
$clone;
73
}
74
78
public
function
getSymbol
():
Symbol
79
{
80
return
$this->symbol
;
81
}
82
86
public
function
hasSymbol
(): bool
87
{
88
return
($this->
symbol
instanceof
Symbol
);
89
}
90
94
public
function
withTitle
(
string
$title
):
hasTitle
95
{
96
$clone = clone($this);
97
$clone->title =
$title
;
98
99
return
$clone;
100
}
101
105
public
function
getTitle
(): string
106
{
107
return
$this->title
;
108
}
109
}
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:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\hasSymbol
hasSymbol()
@inheritDoc
Definition:
LinkItem.php:86
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withSymbol
withSymbol(Symbol $symbol)
@inheritDoc
Definition:
LinkItem.php:67
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\__construct
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition:
LinkItem.php:42
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$title
string $title
Definition:
LinkItem.php:36
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withTitle
withTitle(string $title)
@inheritDoc
Definition:
LinkItem.php:94
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$action
string $action
Definition:
LinkItem.php:37
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withAction
withAction(string $action)
Definition:
LinkItem.php:48
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$symbol
Symbol $symbol
Definition:
LinkItem.php:35
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getTitle
getTitle()
@inheritDoc
Definition:
LinkItem.php:105
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getAction
getAction()
Definition:
LinkItem.php:59
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getSymbol
getSymbol()
@inheritDoc
Definition:
LinkItem.php:78
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\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\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:216
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
LinkItem.php
Generated on Sat Oct 18 2025 23:03:07 for ILIAS by
1.9.4 (using
Doxyfile
)