ILIAS
trunk Revision v11.0_alpha-1843-g9e1fad99175
◀ 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
TaggingMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tagging\Provider
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
24
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
25
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
26
32
class
TaggingMainBarProvider
extends
AbstractStaticMainMenuProvider
33
{
37
public
function
getStaticTopItems
(): array
38
{
39
return
[];
40
}
41
42
46
public
function
getStaticSubItems
(): array
47
{
48
$title = $this->dic->language()->txt(
"mm_tags"
);
49
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(Standard::TAGS, $title);
50
51
return
[
52
$this->mainmenu->complex($this->
if
->identifier(
'tags'
))
53
->
withAvailableCallable
(
function
() {
54
$tags_set = new \ilSetting(
"tags"
);
55
return
(
bool
) $tags_set->get(
"enable"
);
56
})
57
->
withTitle
($title)
58
->withSupportsAsynchronousLoading(
true
)
59
->withSymbol($icon)
60
->withContentWrapper(
function
() {
61
$tag_ui = new \ilTaggingSlateContentGUI();
62
63
return
$this->dic->ui()->factory()->legacy()->content($tag_ui->render());
64
})
65
->
withParent
(StandardTopItemsProvider::getInstance()->getPersonalWorkspaceIdentification())
66
->withPosition(20),
67
];
68
}
69
}
StandardTopItemsProvider
Standard
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
ILIAS\Tagging\Provider
Definition:
TaggingMainBarProvider.php:21
ILIAS\Tagging\Provider\TaggingMainBarProvider
Class TaggingMainBarProvider.
Definition:
TaggingMainBarProvider.php:32
ILIAS\GlobalScreen\Scope\withAvailableCallable
withAvailableCallable(callable $is_available)
Definition:
VisibilityAvailabilityTrait.php:63
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\Tagging\Provider\TaggingMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
TaggingMainBarProvider.php:37
ILIAS\GlobalScreen\Scope\Footer\Factory\withParent
withParent(IdentificationInterface $identification)
Definition:
canHaveParentTrait.php:42
ILIAS\Tagging\Provider\TaggingMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
TaggingMainBarProvider.php:46
components
ILIAS
Tagging
GlobalScreen
classes
TaggingMainBarProvider.php
Generated on Fri Apr 18 2025 23:04:12 for ILIAS by
1.8.13 (using
Doxyfile
)