ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
GlyphRendererFactory.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2017 Nils Haagen <nils.haagen@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Symbol\Glyph
;
6
7
use
ILIAS\UI\Implementation\Render
;
8
use
ILIAS\UI\Component
;
9
10
class
GlyphRendererFactory
extends
Render\DefaultRendererFactory
11
{
12
const
USE_BUTTON_CONTEXT_FOR
= [
13
'BulkyButton'
,
14
'BulkyLink'
15
];
16
17
public
function
getRendererInContext
(
Component
\
Component
$component, array $contexts)
18
{
19
if
(count(array_intersect(self::USE_BUTTON_CONTEXT_FOR, $contexts)) > 0) {
20
return
new
ButtonContextRenderer
(
21
$this->ui_factory,
22
$this->tpl_factory,
23
$this->lng,
24
$this->js_binding,
25
$this->refinery
26
);
27
}
28
return
new
Renderer
(
29
$this->ui_factory,
30
$this->tpl_factory,
31
$this->lng,
32
$this->js_binding,
33
$this->refinery
34
);
35
}
36
}
ILIAS\UI\Implementation\Component\Symbol\Glyph\Renderer
Definition:
Renderer.php:11
ILIAS\UI\Implementation\Component\Symbol\Glyph\GlyphRendererFactory
Definition:
GlyphRendererFactory.php:10
ILIAS\UI\Component
ILIAS\UI\Implementation\Render
Definition:
AbstractComponentRenderer.php:5
ILIAS\UI\Implementation\Component\Symbol\Glyph\ButtonContextRenderer
Definition:
ButtonContextRenderer.php:7
ILIAS\UI\Implementation\Component\Symbol\Glyph
Definition:
ButtonContextRenderer.php:5
ILIAS\UI\Implementation\Component\Symbol\Glyph\GlyphRendererFactory\USE_BUTTON_CONTEXT_FOR
const USE_BUTTON_CONTEXT_FOR
Definition:
GlyphRendererFactory.php:12
ILIAS\UI\Implementation\Component\Symbol\Glyph\GlyphRendererFactory\getRendererInContext
getRendererInContext(Component\Component $component, array $contexts)
Definition:
GlyphRendererFactory.php:17
ILIAS\UI\Implementation\Render\DefaultRendererFactory
Definition:
DefaultRendererFactory.php:11
src
UI
Implementation
Component
Symbol
Glyph
GlyphRendererFactory.php
Generated on Mon Sep 1 2025 20:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)