ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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\SymbolDecoratorTrait
;
27
32
class
TopLinkItem
extends
AbstractBaseItem
implements
isItem
,
hasTitle
,
hasSymbol
,
hasContentLanguage
,
hasLanguageForTargetedResource
33
{
34
use
ContentLanguage
;
35
use
LanguageForTargetedResource
;
36
use
SymbolDecoratorTrait
;
37
38
protected
?
Symbol
$symbol
= null;
39
protected
string
$title
=
""
;
40
protected
string
$action
=
""
;
41
45
public
function
__construct
(
IdentificationInterface
$provider_identification
)
46
{
47
parent::__construct
($provider_identification);
48
$this->renderer =
new
TopLinkItemRenderer
();
49
}
50
51
public
function
withAction
(
string
$action): self
52
{
53
$clone = clone($this);
54
$clone->action =
$action
;
55
56
return
$clone;
57
}
58
62
public
function
getAction
(): string
63
{
64
return
$this->action
;
65
}
66
70
public
function
withSymbol
(
Symbol
$symbol):
hasSymbol
71
{
72
$clone = clone($this);
73
$clone->symbol =
$symbol
;
74
75
return
$clone;
76
}
77
81
public
function
getSymbol
():
Symbol
82
{
83
return
$this->symbol
;
84
}
85
89
public
function
hasSymbol
(): bool
90
{
91
return
($this->
symbol
instanceof
Symbol
);
92
}
93
97
public
function
withTitle
(
string
$title):
hasTitle
98
{
99
$clone = clone($this);
100
$clone->title =
$title
;
101
102
return
$clone;
103
}
104
108
public
function
getTitle
(): string
109
{
110
return
$this->title
;
111
}
112
}
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:32
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:27
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:38
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasContentLanguage
Definition:
hasContentLanguage.php:23
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:32
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\hasSymbol
hasSymbol()
Definition:
TopLinkItem.php:89
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:51
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
IdentificationInterface $provider_identification
Definition:
AbstractBaseItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AbstractBaseItem.php:20
TopLinkItemRenderer
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$action
string $action
Definition:
TopLinkItem.php:40
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getSymbol
getSymbol()
Definition:
TopLinkItem.php:81
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
TopLinkItem.php:45
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:108
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasLanguageForTargetedResource
Definition:
hasLanguageForTargetedResource.php:23
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$symbol
Symbol $symbol
Definition:
TopLinkItem.php:38
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:31
ILIAS\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:203
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:62
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LanguageForTargetedResource
trait LanguageForTargetedResource
Definition:
LanguageForTargetedResource.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:97
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
Class TopLinkItemRenderer.
Definition:
TopLinkItemRenderer.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
TopLinkItem.php:70
src
GlobalScreen
Scope
MetaBar
Factory
TopLinkItem.php
Generated on Wed Sep 10 2025 14:12:06 for ILIAS by
1.8.13 (using
Doxyfile
)