ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
TopLinkItem.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
;
24
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
;
25
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
26
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
;
27
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
;
28
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
;
29
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItemTrait
;
30
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
;
31
35
class
TopLinkItem
extends
AbstractChildItem
implements
36
hasTitle
,
37
hasAction
,
38
isTopItem
,
39
hasSymbol
,
40
isInterchangeableItem
41
{
42
use
hasSymbolTrait
;
43
use
isInterchangeableItemTrait
;
44
45
protected
bool
$is_external_action
=
false
;
46
47
protected
string
$title
=
''
;
48
49
protected
string
$action
=
''
;
50
55
public
function
withTitle
(
string
$title):
hasTitle
56
{
57
$clone = clone($this);
58
$clone->title =
$title
;
59
60
return
$clone;
61
}
62
66
public
function
getTitle
(): string
67
{
68
return
$this->title
;
69
}
70
75
public
function
withAction
(
string
$action):
hasAction
76
{
77
$clone = clone($this);
78
$clone->action =
$action
;
79
80
return
$clone;
81
}
82
86
public
function
getAction
(): string
87
{
88
return
$this->action
;
89
}
90
95
public
function
withIsLinkToExternalAction
(
bool
$is_external):
hasAction
96
{
97
$clone = clone $this;
98
$clone->is_external_action = $is_external;
99
100
return
$clone;
101
}
102
106
public
function
isLinkWithExternalAction
(): bool
107
{
108
return
$this->is_external_action
;
109
}
110
}
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withTitle
withTitle(string $title)
Definition:
TopLinkItem.php:55
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isInterchangeableItem
Definition:
isInterchangeableItem.php:27
isTopItem
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getAction
getAction()
Definition:
TopLinkItem.php:86
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem
Definition:
TopLinkItem.php:21
isInterchangeableItemTrait
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\isLinkWithExternalAction
isLinkWithExternalAction()
Definition:
TopLinkItem.php:106
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withAction
withAction(string $action)
Definition:
TopLinkItem.php:75
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\withIsLinkToExternalAction
withIsLinkToExternalAction(bool $is_external)
Definition:
TopLinkItem.php:95
ILIAS\GlobalScreen\Scope\MainMenu\Factory\isTopItem
Interface TopIs.
Definition:
isTopItem.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasTitle
Interface hasTitle.
Definition:
hasTitle.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$action
string $action
Definition:
TopLinkItem.php:49
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:63
hasAction
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$is_external_action
bool $is_external_action
Definition:
TopLinkItem.php:45
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Definition:
hasSymbol.php:30
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\getTitle
getTitle()
Definition:
TopLinkItem.php:66
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasAction
Interface hasAction.
Definition:
hasAction.php:26
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbolTrait
trait hasSymbolTrait
Trait hasSymbolTrait.
Definition:
hasSymbolTrait.php:32
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem
Definition:
TopLinkItem.php:35
ILIAS\GlobalScreen\Scope\MainMenu\Factory\TopItem\TopLinkItem\$title
string $title
Definition:
TopLinkItem.php:47
hasTitle
AbstractChildItem
ILIAS\GlobalScreen\Scope\MainMenu\Factory\AbstractChildItem
Class AbstractBaseItem.
Definition:
AbstractChildItem.php:29
isInterchangeableItem
components
ILIAS
GlobalScreen
src
Scope
MainMenu
Factory
TopItem
TopLinkItem.php
Generated on Sat Apr 12 2025 23:03:12 for ILIAS by
1.8.13 (using
Doxyfile
)