ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
use
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
;
27
32
class
LinkItem
extends
AbstractChildItem
implements
isItem
,
hasTitle
,
hasSymbol
,
isChild
33
{
34
use
SymbolDecoratorTrait
;
38
protected
$symbol
;
42
protected
$title
=
""
;
46
protected
$action
=
""
;
47
51
public
function
__construct
(
IdentificationInterface
$provider_identification
)
52
{
53
parent::__construct
($provider_identification);
54
$this->renderer =
new
LinkItemRenderer
();
55
}
56
57
public
function
withAction
(
string
$action
) : self
58
{
59
$clone = clone($this);
60
$clone->action =
$action
;
61
62
return
$clone;
63
}
64
68
public
function
getAction
() : string
69
{
70
return
$this->action
;
71
}
72
76
public
function
withSymbol
(
Symbol
$symbol
) :
hasSymbol
77
{
78
$clone = clone($this);
79
$clone->symbol =
$symbol
;
80
81
return
$clone;
82
}
83
87
public
function
getSymbol
() :
Symbol
88
{
89
return
$this->symbol
;
90
}
91
95
public
function
hasSymbol
() : bool
96
{
97
return
($this->symbol instanceof
Symbol
);
98
}
99
103
public
function
withTitle
(
string
$title
) :
hasTitle
104
{
105
$clone = clone($this);
106
$clone->title =
$title
;
107
108
return
$clone;
109
}
110
114
public
function
getTitle
() : string
115
{
116
return
$this->title
;
117
}
118
}
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:11
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$title
$title
Definition:
LinkItem.php:42
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:27
ILIAS\GlobalScreen\Scope\SymbolDecoratorTrait
trait SymbolDecoratorTrait
Definition:
SymbolDecoratorTrait.php:37
ILIAS\GlobalScreen\Identification\IdentificationInterface
Interface IdentificationInterface.
Definition:
IdentificationInterface.php:29
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getTitle
getTitle()
Definition:
LinkItem.php:114
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractBaseItem\$provider_identification
$provider_identification
Definition:
AbstractBaseItem.php:51
Symbol
ILIAS\GlobalScreen\Scope\MetaBar\Factory
Definition:
AbstractBaseItem.php:20
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withSymbol
withSymbol(Symbol $symbol)
Definition:
LinkItem.php:76
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isChild
Interface isChild.
Definition:
isChild.php:28
IdentificationInterface
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withTitle
withTitle(string $title)
Definition:
LinkItem.php:103
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\withAction
withAction(string $action)
Definition:
LinkItem.php:57
ILIAS\GlobalScreen\Scope\MetaBar\Factory\isItem
Class isItem.
Definition:
isItem.php:30
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$action
$action
Definition:
LinkItem.php:46
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\__construct
__construct(IdentificationInterface $provider_identification)
Definition:
LinkItem.php:51
ILIAS\GlobalScreen\Scope\MetaBar\Factory\hasSymbol
Interface hasSymbol.
Definition:
hasSymbol.php:31
ILIAS\GlobalScreen\Scope\MetaBar\Factory\AbstractChildItem
Class AbstractChildItem.
Definition:
AbstractChildItem.php:30
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:40
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\$symbol
$symbol
Definition:
LinkItem.php:38
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getAction
getAction()
Definition:
LinkItem.php:68
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem
Class LinkItem.
Definition:
LinkItem.php:32
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\getSymbol
getSymbol()
Definition:
LinkItem.php:87
ILIAS\GlobalScreen\Scope\MetaBar\Factory\LinkItem\hasSymbol
hasSymbol()
Definition:
LinkItem.php:95
src
GlobalScreen
Scope
MetaBar
Factory
LinkItem.php
Generated on Tue Apr 8 2025 21:02:12 for ILIAS by
1.8.13 (using
Doxyfile
)