ILIAS
trunk Revision v12.0_alpha-1227-g7ff6d300864
◀ ilDoc Overview
TopLegacyItem.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\TopLegacyItemRenderer
;
25
use
ILIAS\UI\Component\Legacy\Content
;
26
use
ILIAS\UI\Component\Symbol\Symbol
;
27
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
28
use
ILIAS\GlobalScreen\Scope\ComponentDecoratorTrait
;
29
33
class
TopLegacyItem
extends
AbstractBaseItem
implements
34
isItem
,
35
hasSymbol
,
36
hasTitle
,
37
hasContentLanguage
,
38
isDecorateable
39
{
40
use
ComponentDecoratorTrait
;
41
use
ContentLanguage
;
42
43
protected
?
Symbol
$symbol
=
null
;
44
protected
string
$title
=
""
;
45
protected
?
Content
$content
=
null
;
46
50
public
function
__construct
(
IdentificationInterface
$provider_identification)
51
{
52
parent::__construct
($provider_identification);
53
$this->
renderer
=
new
TopLegacyItemRenderer
();
54
}
55
59
public
function
withSymbol
(
Symbol
$symbol
):
hasSymbol
60
{
61
$clone = clone($this);
62
$clone->symbol =
$symbol
;
63
64
return
$clone;
65
}
66
70
public
function
getSymbol
():
Symbol
71
{
72
return
$this->symbol
;
73
}
74
78
public
function
hasSymbol
(): bool
79
{
80
return
($this->
symbol
instanceof
Symbol
);
81
}
82
86
public
function
withTitle
(
string
$title
):
hasTitle
87
{
88
$clone = clone($this);
89
$clone->title =
$title
;
90
91
return
$clone;
92
}
93
97
public
function
getTitle
(): string
98
{
99
return
$this->title
;
100
}
101
102
public
function
withLegacyContent
(
Content
$content
): self
103
{
104
$clone = clone $this;
105
$clone->content =
$content
;
106
107
return
$clone;
108
}
109
113
public
function
getLegacyContent
():
Content
114
{
115
return
$this->content
;
116
}
117
118
public
function
hasLegacyContent
(): bool
119
{
120
return
($this->content instanceof Legacy);
121
}
122
}
renderer
renderer()
Definition:
UITestHelper.php:69
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLegacyItemRenderer
Class TopLegacyItemRenderer.
Definition:
TopLegacyItemRenderer.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Definition:
AbstractBaseItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem
Definition:
TopLegacyItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getSymbol
getSymbol()
@inheritDoc
Definition:
TopLegacyItem.php:70
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getLegacyContent
getLegacyContent()
Definition:
TopLegacyItem.php:113
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasSymbol
hasSymbol()
@inheritDoc
Definition:
TopLegacyItem.php:78
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$symbol
Symbol $symbol
Definition:
TopLegacyItem.php:43
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\__construct
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition:
TopLegacyItem.php:50
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$content
Content $content
Definition:
TopLegacyItem.php:45
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasLegacyContent
hasLegacyContent()
Definition:
TopLegacyItem.php:118
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getTitle
getTitle()
@inheritDoc
Definition:
TopLegacyItem.php:97
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withLegacyContent
withLegacyContent(Content $content)
Definition:
TopLegacyItem.php:102
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withSymbol
withSymbol(Symbol $symbol)
@inheritDoc
Definition:
TopLegacyItem.php:59
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withTitle
withTitle(string $title)
@inheritDoc
Definition:
TopLegacyItem.php:86
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$title
string $title
Definition:
TopLegacyItem.php:44
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\hasSymbol
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:28
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:30
ILIAS\UI\Component\Legacy\Content
Definition:
Content.php:33
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\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
TopLegacyItem.php
Generated on Wed Apr 8 2026 23:04:54 for ILIAS by
1.9.4 (using
Doxyfile
)