ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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\Legacy
;
26
use
ILIAS\UI\Component\Symbol\Symbol
;
27
32
class
TopLegacyItem
extends
AbstractBaseItem
implements
isItem
,
hasSymbol
,
hasTitle
,
hasContentLanguage
33
{
34
use
ContentLanguage
;
35
use \ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
;
36
37
protected
?
Symbol
$symbol
= null;
38
protected
string
$title
=
""
;
39
protected
?
Legacy
$content
= null;
40
44
public
function
__construct
(
IdentificationInterface
$provider_identification
)
45
{
46
parent::__construct
($provider_identification);
47
$this->renderer =
new
TopLegacyItemRenderer
();
48
}
49
53
public
function
withSymbol
(
Symbol
$symbol):
hasSymbol
54
{
55
$clone = clone($this);
56
$clone->symbol =
$symbol
;
57
58
return
$clone;
59
}
60
64
public
function
getSymbol
():
Symbol
65
{
66
return
$this->symbol
;
67
}
68
72
public
function
hasSymbol
(): bool
73
{
74
return
($this->
symbol
instanceof
Symbol
);
75
}
76
80
public
function
withTitle
(
string
$title):
hasTitle
81
{
82
$clone = clone($this);
83
$clone->title =
$title
;
84
85
return
$clone;
86
}
87
91
public
function
getTitle
(): string
92
{
93
return
$this->title
;
94
}
95
96
public
function
withLegacyContent
(
Legacy
$content): self
97
{
98
$clone = clone $this;
99
$clone->content =
$content
;
100
101
return
$clone;
102
}
103
107
public
function
getLegacyContent
():
Legacy
108
{
109
return
$this->content
;
110
}
111
115
public
function
hasLegacyContent
(): bool
116
{
117
return
($this->content instanceof
Legacy
);
118
}
119
}
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\Collector\Renderer\TopLegacyItemRenderer
Class TopLegacyItemRenderer.
Definition:
TopLegacyItemRenderer.php:31
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\TopLegacyItem\withLegacyContent
withLegacyContent(Legacy $content)
Definition:
TopLegacyItem.php:96
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getTitle
getTitle()
Definition:
TopLegacyItem.php:91
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$symbol
Symbol $symbol
Definition:
TopLegacyItem.php:37
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getLegacyContent
getLegacyContent()
Definition:
TopLegacyItem.php:107
TopLegacyItemRenderer
ILIAS\UI\Component\Legacy\Legacy
Definition:
Legacy.php:32
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
IdentificationInterface $provider_identification
Definition:
AbstractBaseItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$title
string $title
Definition:
TopLegacyItem.php:38
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
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$content
Legacy $content
Definition:
TopLegacyItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
TopLegacyItem.php:44
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem
Class TopLegacyItem.
Definition:
TopLegacyItem.php:32
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withTitle
withTitle(string $title)
Definition:
TopLegacyItem.php:80
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getSymbol
getSymbol()
Definition:
TopLegacyItem.php:64
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
TopLegacyItem.php:53
ILIAS\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:203
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasSymbol
hasSymbol()
Definition:
TopLegacyItem.php:72
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasLegacyContent
hasLegacyContent()
Definition:
TopLegacyItem.php:115
Legacy
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
src
GlobalScreen
Scope
MetaBar
Factory
TopLegacyItem.php
Generated on Wed Sep 10 2025 14:12:06 for ILIAS by
1.8.13 (using
Doxyfile
)