ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
33
{
34
use \ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
;
35
39
protected
$symbol
;
43
protected
$title
=
""
;
47
protected
$content
;
48
52
public
function
__construct
(
IdentificationInterface
$provider_identification
)
53
{
54
parent::__construct
(
$provider_identification
);
55
$this->renderer =
new
TopLegacyItemRenderer
();
56
}
57
61
public
function
withSymbol
(
Symbol
$symbol
) :
hasSymbol
62
{
63
$clone = clone($this);
64
$clone->symbol =
$symbol
;
65
66
return
$clone;
67
}
68
72
public
function
getSymbol
() :
Symbol
73
{
74
return
$this->symbol
;
75
}
76
80
public
function
hasSymbol
() : bool
81
{
82
return
($this->symbol instanceof
Symbol
);
83
}
84
88
public
function
withTitle
(
string
$title
) :
hasTitle
89
{
90
$clone = clone($this);
91
$clone->title =
$title
;
92
93
return
$clone;
94
}
95
99
public
function
getTitle
() : string
100
{
101
return
$this->title
;
102
}
103
104
public
function
withLegacyContent
(
Legacy
$content
) : self
105
{
106
$clone = clone $this;
107
$clone->content =
$content
;
108
109
return
$clone;
110
}
111
115
public
function
getLegacyContent
() :
Legacy
116
{
117
return
$this->content
;
118
}
119
123
public
function
hasLegacyContent
() : bool
124
{
125
return
($this->content instanceof
Legacy
);
126
}
127
}
php
An exception for terminatinating execution or to throw for unit testing.
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\TopLegacyItemRenderer
Class TopLegacyItemRenderer.
Definition:
TopLegacyItemRenderer.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\TopLegacyItem
Class TopLegacyItem.
Definition:
TopLegacyItem.php:33
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getSymbol
getSymbol()
@inheritDoc
Definition:
TopLegacyItem.php:72
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getLegacyContent
getLegacyContent()
Definition:
TopLegacyItem.php:115
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$title
$title
Definition:
TopLegacyItem.php:43
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasSymbol
hasSymbol()
@inheritDoc
Definition:
TopLegacyItem.php:80
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\__construct
__construct(IdentificationInterface $provider_identification)
@inheritDoc
Definition:
TopLegacyItem.php:52
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\hasLegacyContent
hasLegacyContent()
Definition:
TopLegacyItem.php:123
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$content
$content
Definition:
TopLegacyItem.php:47
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\getTitle
getTitle()
@inheritDoc
Definition:
TopLegacyItem.php:99
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\$symbol
$symbol
Definition:
TopLegacyItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withSymbol
withSymbol(Symbol $symbol)
@inheritDoc
Definition:
TopLegacyItem.php:61
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withTitle
withTitle(string $title)
@inheritDoc
Definition:
TopLegacyItem.php:88
ILIAS\GlobalScreen\Scope\MetaBar\Factory\TopLegacyItem\withLegacyContent
withLegacyContent(Legacy $content)
Definition:
TopLegacyItem.php:104
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\Legacy\Legacy
Definition:
Legacy.php:15
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
TopLegacyItem.php
Generated on Fri Oct 3 2025 21:01:10 for ILIAS by
1.9.4 (using
Doxyfile
)