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
Sub.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\Menu
as
IMenu
;
9
use
ILIAS\UI\Component\Symbol\Icon\Icon
;
10
use
ILIAS\UI\Component\Symbol\Glyph\Glyph
;
11
use
ILIAS\UI\Implementation\Component\JavaScriptBindable
;
12
16
class
Sub
extends
LabeledMenu
implements
IMenu\Sub
17
{
18
use
JavaScriptBindable
;
19
23
protected
$active
=
false
;
24
29
public
function
__construct
($label, array $items)
30
{
31
$this->checkLabelParameter($label);
32
$this->checkItemParameter($items);
33
$this->label = $label;
34
$this->items = $items;
35
}
36
40
public
function
withInitiallyActive
() :
IMenu
\
Sub
41
{
42
$clone = clone $this;
43
$clone->active =
true
;
44
return
$clone;
45
}
46
50
public
function
isInitiallyActive
() : bool
51
{
52
return
$this->active;
53
}
54
}
ILIAS\UI\Implementation\Component\Menu\Sub\__construct
__construct($label, array $items)
Definition:
Sub.php:29
ILIAS\UI\Implementation\Component\Menu\Sub\$active
$active
Definition:
Sub.php:23
ILIAS\UI\Implementation\Component\Menu\Sub\isInitiallyActive
isInitiallyActive()
Is this initially active?
Definition:
Sub.php:50
Glyph
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:12
Icon
ILIAS\UI\Component\Menu\LabeledMenu
This describes a Menu Control with a label.
Definition:
LabeledMenu.php:13
ILIAS\UI\Implementation\Component\Menu\Sub\withInitiallyActive
withInitiallyActive()
Configure this Submenu to be active when the menu is loaded.
Definition:
Sub.php:40
ILIAS\UI\Component\Menu\Sub
This describes a Submenu, i.e.
Definition:
Sub.php:14
ILIAS\UI\Implementation\Component\Menu
Definition:
Drilldown.php:6
ILIAS\UI\Component\Menu
Definition:
Drilldown.php:6
src
UI
Implementation
Component
Menu
Sub.php
Generated on Sat Apr 5 2025 20:01:39 for ILIAS by
1.8.13 (using
Doxyfile
)