ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
33
{
34
use
SymbolDecoratorTrait
;
35
39
protected
$symbol
;
43
protected
$title
=
""
;
47
protected
$action
=
""
;
48
52
public
function
__construct
(
IdentificationInterface
$provider_identification
)
53
{
54
parent::__construct
(
$provider_identification
);
55
$this->renderer =
new
TopLinkItemRenderer
();
56
}
57
58
public
function
withAction
(
string
$action
) : self
59
{
60
$clone = clone($this);
61
$clone->action =
$action
;
62
63
return
$clone;
64
}
65
69
public
function
getAction
() : string
70
{
71
return
$this->action
;
72
}
73
77
public
function
withSymbol
(
Symbol
$symbol
) :
hasSymbol
78
{
79
$clone = clone($this);
80
$clone->symbol =
$symbol
;
81
82
return
$clone;
83
}
84
88
public
function
getSymbol
() :
Symbol
89
{
90
return
$this->symbol
;
91
}
92
96
public
function
hasSymbol
() : bool
97
{
98
return
($this->symbol instanceof
Symbol
);
99
}
100
104
public
function
withTitle
(
string
$title
) :
hasTitle
105
{
106
$clone = clone($this);
107
$clone->title =
$title
;
108
109
return
$clone;
110
}
111
115
public
function
getTitle
() : string
116
{
117
return
$this->title
;
118
}
119
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
Class TopLinkItemRenderer.
Definition:
TopLinkItemRenderer.php:32
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
$provider_identification
Definition:
AbstractBaseItem.php:51
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:58
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$title
$title
Definition:
TopLinkItem.php:43
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$symbol
$symbol
Definition:
TopLinkItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\hasSymbol
hasSymbol()
@inheritDoc
Definition:
TopLinkItem.php:96
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getSymbol
getSymbol()
@inheritDoc
Definition:
TopLinkItem.php:88
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withTitle
withTitle(string $title)
@inheritDoc
Definition:
TopLinkItem.php:104
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:69
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getTitle
getTitle()
@inheritDoc
Definition:
TopLinkItem.php:115
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$action
$action
Definition:
TopLinkItem.php:47
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\__construct
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition:
TopLinkItem.php:52
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withSymbol
withSymbol(Symbol $symbol)
@inheritDoc
Definition:
TopLinkItem.php:77
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:32
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:28
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:31
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:12
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:40
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:20
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:37
src
GlobalScreen
Scope
MetaBar
Factory
TopLinkItem.php
Generated on Fri Oct 3 2025 21:01:10 for ILIAS by
1.9.4 (using
Doxyfile
)