ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
TopLinkItem.php
Go to the documentation of this file.
1
<?php
namespace
ILIAS\GlobalScreen\Scope\MetaBar\Factory
;
2
3
use
ILIAS\GlobalScreen\Identification\IdentificationInterface
;
4
use
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
;
5
use
ILIAS\UI\Component\Symbol\Glyph\Glyph
;
6
use
ILIAS\UI\Component\Symbol\Symbol
;
7
13
class
TopLinkItem
extends
AbstractBaseItem
implements
isItem
,
hasTitle
,
hasSymbol
14
{
15
19
protected
$glyph
;
23
protected
$title
=
""
;
27
protected
$action
=
""
;
28
29
33
public
function
__construct
(
IdentificationInterface
$provider_identification
)
34
{
35
parent::__construct
($provider_identification);
36
$this->renderer =
new
TopLinkItemRenderer
();
37
}
38
39
45
public
function
withAction
(
string
$action
) :
TopLinkItem
46
{
47
$clone = clone($this);
48
$clone->action =
$action
;
49
50
return
$clone;
51
}
52
53
57
public
function
getAction
() : string
58
{
59
return
$this->action
;
60
}
61
62
66
public
function
withSymbol
(
Symbol
$symbol) :
hasSymbol
67
{
68
$clone = clone($this);
69
$clone->glyph = $symbol;
70
71
return
$clone;
72
}
73
74
78
public
function
getSymbol
() :
Symbol
79
{
80
return
$this->glyph
;
81
}
82
83
87
public
function
hasSymbol
() : bool
88
{
89
return
($this->glyph instanceof
Symbol
);
90
}
91
92
96
public
function
withTitle
(
string
$title
) :
hasTitle
97
{
98
$clone = clone($this);
99
$clone->title =
$title
;
100
101
return
$clone;
102
}
103
104
108
public
function
getTitle
() : string
109
{
110
return
$this->title
;
111
}
112
}
Glyph
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:11
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Class AbstractBaseItem.
Definition:
AbstractBaseItem.php:13
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:8
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:8
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem
Class TopLinkItem.
Definition:
TopLinkItem.php:13
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\hasSymbol
hasSymbol()
Definition:
TopLinkItem.php:87
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:45
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
$provider_identification
Definition:
AbstractBaseItem.php:31
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:1
TopLinkItemRenderer
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$glyph
$glyph
Definition:
TopLinkItem.php:19
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getSymbol
getSymbol()
Definition:
TopLinkItem.php:78
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
TopLinkItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:108
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:11
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:10
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:57
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$title
$title
Definition:
TopLinkItem.php:23
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:96
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\$action
$action
Definition:
TopLinkItem.php:27
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLinkItemRenderer
Class TopLinkItemRenderer.
Definition:
TopLinkItemRenderer.php:12
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLinkItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
TopLinkItem.php:66
src
GlobalScreen
Scope
MetaBar
Factory
TopLinkItem.php
Generated on Tue Sep 2 2025 20:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)