ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
◀ 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
DecoratorApplierTrait.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\GlobalScreen\Collector\Renderer
;
22
23
use
ILIAS\GlobalScreen\isGlobalScreenItem
;
24
use
ILIAS\UI\Component\Component
;
25
use
ILIAS\UI\Component\Symbol\Symbol
;
26
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
27
use
ILIAS\UI\Component\HasHelpTopics
;
28
32
trait
DecoratorApplierTrait
33
{
34
private
function
applyTopics(
HasHelpTopics
$component,
isDecorateable
$item):
Component
35
{
36
return
$component->
withHelpTopics
(...$item->
getTopics
());
37
}
38
39
public
function
applyComponentDecorator(
Component
$component,
isGlobalScreenItem
$item):
Component
40
{
41
$c
= $item->getComponentDecorator();
42
if
(
$c
!==
null
) {
43
return
$c
($component);
44
}
45
46
return
$component;
47
}
48
49
public
function
applySymbolDecorator(
Symbol
$symbol,
isGlobalScreenItem
$item):
Symbol
50
{
51
$c
= $item->getSymbolDecorator();
52
if
(
$c
!==
null
) {
53
return
$c
($symbol);
54
}
55
56
return
$symbol;
57
}
58
}
ILIAS\GlobalScreen\isGlobalScreenItem
Definition:
isGlobalScreenItem.php:28
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
ILIAS\UI\Implementation\Component\HasHelpTopics
trait HasHelpTopics
Definition:
HasHelpTopics.php:26
ILIAS\UI\Component
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isGlobalScreenItem
Symbol
$c
$c
Definition:
deliver.php:25
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
DecoratorApplierTrait
isDecorateable
ILIAS\GlobalScreen\Scope\isDecorateable\getTopics
getTopics()
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:29
ILIAS\UI\Component\HasHelpTopics\withHelpTopics
withHelpTopics(Topic ... $topics)
Let this component have the given topics.
ILIAS\GlobalScreen\Collector\Renderer
Definition:
DecoratorApplierTrait.php:21
HasHelpTopics
components
ILIAS
GlobalScreen
src
Collector
Renderer
DecoratorApplierTrait.php
Generated on Sat Apr 5 2025 23:03:16 for ILIAS by
1.8.13 (using
Doxyfile
)