ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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
LabeledMenu.php
Go to the documentation of this file.
1
<?php
2
declare(strict_types=1);
3
4
/* Copyright (c) 2019 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
5
6
namespace
ILIAS\UI\Implementation\Component\Menu
;
7
8
use
ILIAS\UI\Component
as
Component
;
9
use
ILIAS\UI\Component\Menu
as
IMenu
;
10
use
ILIAS\UI\Implementation\Component\ComponentHelper
;
11
15
abstract
class
LabeledMenu
extends
Menu
implements
IMenu\LabeledMenu
16
{
17
use
ComponentHelper
;
18
22
protected
$label
;
23
27
public
function
getLabel
()
28
{
29
return
$this->label;
30
}
31
35
public
function
withLabel
($label) :
IMenu
\
LabeledMenu
36
{
37
$this->
checkLabelParameter
(
$label
);
38
$clone = clone $this;
39
$clone->label =
$label
;
40
return
$clone;
41
}
42
46
protected
function
checkLabelParameter
($label)
47
{
48
$classes = [Component\Clickable::class, \string::class];
49
$check = [
$label
];
50
$this->
checkArgListElements
(
"label"
, $check, $classes);
51
}
52
}
ILIAS\UI\Implementation\Component\Menu\LabeledMenu\checkLabelParameter
checkLabelParameter($label)
Definition:
LabeledMenu.php:46
ILIAS\UI\Implementation\Component\Menu\LabeledMenu\getLabel
getLabel()
Get the label for this menu.Component | string
Definition:
LabeledMenu.php:27
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\ComponentHelper
trait ComponentHelper
Provides common functionality for component implementations.
Definition:
ComponentHelper.php:13
ILIAS\UI\Implementation\Component\Menu\LabeledMenu\withLabel
withLabel($label)
Definition:
LabeledMenu.php:35
ILIAS\UI\Component\Menu\LabeledMenu
This describes a Menu Control with a label.
Definition:
LabeledMenu.php:13
ILIAS\UI\Component\Menu\Menu
This describes a Menu Control.
Definition:
Menu.php:13
ILIAS\UI\Implementation\Component\Menu
Definition:
Drilldown.php:6
ILIAS\UI\Implementation\Component\Menu\LabeledMenu\$label
$label
Definition:
LabeledMenu.php:22
ILIAS\UI\Component\Menu
Definition:
Drilldown.php:6
ILIAS\UI\Implementation\Component\checkArgListElements
checkArgListElements($which, array &$values, $classes)
Check every element of the list if it is an instance of one of the given classes. ...
Definition:
ComponentHelper.php:217
src
UI
Implementation
Component
Menu
LabeledMenu.php
Generated on Sat Apr 5 2025 20:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)