ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
LinkItem.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\LinkItemRenderer
;
25
use
ILIAS\UI\Component\Symbol\Symbol
;
26
31
class
LinkItem
extends
AbstractChildItem
implements
isItem
,
hasTitle
,
hasSymbol
,
isChild
,
hasContentLanguage
,
hasLanguageForTargetedResource
32
{
33
use
ContentLanguage
;
34
use
LanguageForTargetedResource
;
35
use \ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
;
36
37
protected
?
Symbol
$symbol
= null;
38
protected
string
$title
=
""
;
39
protected
string
$action
=
""
;
40
44
public
function
__construct
(
IdentificationInterface
$provider_identification
)
45
{
46
parent::__construct
($provider_identification);
47
$this->renderer =
new
LinkItemRenderer
();
48
}
49
50
public
function
withAction
(
string
$action): self
51
{
52
$clone = clone($this);
53
$clone->action =
$action
;
54
55
return
$clone;
56
}
57
61
public
function
getAction
(): string
62
{
63
return
$this->action
;
64
}
65
69
public
function
withSymbol
(
Symbol
$symbol):
hasSymbol
70
{
71
$clone = clone($this);
72
$clone->symbol =
$symbol
;
73
74
return
$clone;
75
}
76
80
public
function
getSymbol
():
Symbol
81
{
82
return
$this->symbol
;
83
}
84
88
public
function
hasSymbol
(): bool
89
{
90
return
($this->
symbol
instanceof
Symbol
);
91
}
92
96
public
function
withTitle
(
string
$title):
hasTitle
97
{
98
$clone = clone($this);
99
$clone->title =
$title
;
100
101
return
$clone;
102
}
103
107
public
function
getTitle
(): string
108
{
109
return
$this->title
;
110
}
111
}
ILIAS\GlobalScreen\Scope\MetaBar\Collector\Renderer\LinkItemRenderer
Class LinkItemRenderer.
Definition:
LinkItemRenderer.php:31
LinkItemRenderer
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
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\LinkItem\getTitle
getTitle()
Definition:
LinkItem.php:107
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
IdentificationInterface $provider_identification
Definition:
AbstractBaseItem.php:39
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\LinkItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
LinkItem.php:69
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$title
string $title
Definition:
LinkItem.php:38
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$action
string $action
Definition:
LinkItem.php:39
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isChild
Interface isChild.
Definition:
isChild.php:28
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withTitle
withTitle(string $title)
Definition:
LinkItem.php:96
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withAction
withAction(string $action)
Definition:
LinkItem.php:50
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasLanguageForTargetedResource
Definition:
hasLanguageForTargetedResource.php:23
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
LinkItem.php:44
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem
Class AbstractChildItem.
Definition:
AbstractChildItem.php:29
ILIAS\Repository\symbol
symbol()
Definition:
trait.GlobalDICGUIServices.php:203
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getAction
getAction()
Definition:
LinkItem.php:61
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LanguageForTargetedResource
trait LanguageForTargetedResource
Definition:
LanguageForTargetedResource.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem
Class LinkItem.
Definition:
LinkItem.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getSymbol
getSymbol()
Definition:
LinkItem.php:80
ILIAS\GlobalScreen\Scope\MetaBar\Factory\ContentLanguage
trait ContentLanguage
Definition:
ContentLanguage.php:26
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$symbol
Symbol $symbol
Definition:
LinkItem.php:37
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\hasSymbol
hasSymbol()
Definition:
LinkItem.php:88
src
GlobalScreen
Scope
MetaBar
Factory
LinkItem.php
Generated on Wed Sep 10 2025 14:12:06 for ILIAS by
1.8.13 (using
Doxyfile
)