ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ 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\JavaScriptBindable
;
28
use
ILIAS\UI\Component\HasHelpTopics
;
29
use
ILIAS\UI\Help\Topic
;
30
use
ILIAS\GlobalScreen\Scope
;
31
35
trait
DecoratorApplierTrait
36
{
37
private
function
applyTopics(
HasHelpTopics
$component,
isDecorateable
$item):
Component
38
{
39
return
$component->
withHelpTopics
(...$item->
getTopics
());
40
}
41
42
public
function
applyComponentDecorator(
Component
$component,
isGlobalScreenItem
$item):
Component
43
{
44
$c
= $item->getComponentDecorator();
45
if
(
$c
!== null) {
46
return
$c
($component);
47
}
48
49
return
$component;
50
}
51
52
public
function
applySymbolDecorator(
Symbol
$symbol,
isGlobalScreenItem
$item):
Symbol
53
{
54
$c
= $item->getSymbolDecorator();
55
if
(
$c
!== null) {
56
return
$c
($symbol);
57
}
58
59
return
$symbol;
60
}
61
}
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isGlobalScreenItem
Topic
Symbol
$c
$c
Definition:
deliver.php:9
DecoratorApplierTrait
isDecorateable
ILIAS\GlobalScreen\Scope
Definition:
CheckClosureTrait.php:21
ILIAS\GlobalScreen\Scope\isDecorateable\getTopics
getTopics()
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:30
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 Wed Sep 10 2025 15:15:40 for ILIAS by
1.8.13 (using
Doxyfile
)