ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
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
}
$c
$c
Definition:
deliver.php:25
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:30
ILIAS\GlobalScreen\Scope\isDecorateable\getTopics
getTopics()
ILIAS\GlobalScreen\isGlobalScreenItem
Definition:
isGlobalScreenItem.php:29
ILIAS\UI\Component\Component
A component is the most general form of an entity in the UI.
Definition:
Component.php:28
ILIAS\UI\Component\HasHelpTopics
Definition:
HasHelpTopics.php:26
ILIAS\UI\Component\HasHelpTopics\withHelpTopics
withHelpTopics(Topic ... $topics)
Let this component have the given topics.
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:30
ILIAS\GlobalScreen\Collector\Renderer
Definition:
DecoratorApplierTrait.php:21
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\HasHelpTopics
trait HasHelpTopics
Definition:
HasHelpTopics.php:26
components
ILIAS
GlobalScreen
src
Collector
Renderer
DecoratorApplierTrait.php
Generated on Sun Oct 19 2025 23:02:58 for ILIAS by
1.9.4 (using
Doxyfile
)