ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
31
class
TopLegacyItem
extends
AbstractBaseItem
implements
isItem
,
hasSymbol
,
hasTitle
,
hasContentLanguage
32
{
33
use
ContentLanguage
;
34
35
protected
?
Symbol
$symbol
=
null
;
36
protected
string
$title
=
""
;
37
protected
?
Content
$content
=
null
;
38
42
public
function
__construct
(
IdentificationInterface
$provider_identification)
43
{
44
parent::__construct
($provider_identification);
45
$this->
renderer
=
new
TopLegacyItemRenderer
();
46
}
47
51
public
function
withSymbol
(
Symbol
$symbol):
hasSymbol
52
{
53
$clone = clone($this);
54
$clone->symbol =
$symbol
;
55
56
return
$clone;
57
}
58
62
public
function
getSymbol
():
Symbol
63
{
64
return
$this->symbol
;
65
}
66
70
public
function
hasSymbol
(): bool
71
{
72
return
($this->
symbol
instanceof
Symbol
);
73
}
74
78
public
function
withTitle
(
string
$title):
hasTitle
79
{
80
$clone = clone($this);
81
$clone->title =
$title
;
82
83
return
$clone;
84
}
85
89
public
function
getTitle
(): string
90
{
91
return
$this->title
;
92
}
93
94
public
function
withLegacyContent
(
Content
$content): self
95
{
96
$clone = clone $this;
97
$clone->content =
$content
;
98
99
return
$clone;
100
}
101
105
public
function
getLegacyContent
():
Content
106
{
107
return
$this->content
;
108
}
109
113
public
function
hasLegacyContent
(): bool
114
{
115
return
($this->content instanceof Legacy);
116
}
117
}
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$content
Content $content
Definition:
TopLegacyItem.php:37
ILIAS\UI\Component\Legacy\Content
Definition:
Content.php:32
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem
Definition:
AbstractBaseItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLegacyItemRenderer
Class TopLegacyItemRenderer.
Definition:
TopLegacyItemRenderer.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:27
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withLegacyContent
withLegacyContent(Content $content)
Definition:
TopLegacyItem.php:94
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\getTitle
getTitle()
Definition:
TopLegacyItem.php:89
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$symbol
Symbol $symbol
Definition:
TopLegacyItem.php:35
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getLegacyContent
getLegacyContent()
Definition:
TopLegacyItem.php:105
TopLegacyItemRenderer
renderer
renderer()
Definition:
UITestHelper.php:69
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$title
string $title
Definition:
TopLegacyItem.php:36
ILIAS\UI\Component\Legacy\Content
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:21
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
TopLegacyItem.php:42
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem
Definition:
TopLegacyItem.php:31
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withTitle
withTitle(string $title)
Definition:
TopLegacyItem.php:78
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Definition:
isItem.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getSymbol
getSymbol()
Definition:
TopLegacyItem.php:62
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Definition:
hasSymbol.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
TopLegacyItem.php:51
ILIAS\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:216
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasSymbol
hasSymbol()
Definition:
TopLegacyItem.php:70
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasLegacyContent
hasLegacyContent()
Definition:
TopLegacyItem.php:113
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
components
ILIAS
GlobalScreen
src
Scope
MetaBar
Factory
TopLegacyItem.php
Generated on Sun Aug 31 2025 23:03:03 for ILIAS by
1.8.13 (using
Doxyfile
)