ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
public
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
$this->image_path_resolver
27
);
28
}
29
return
new
Renderer
(
30
$this->ui_factory,
31
$this->tpl_factory,
32
$this->lng,
33
$this->js_binding,
34
$this->refinery,
35
$this->image_path_resolver
36
);
37
}
38
}
ILIAS\UI\Implementation\Component\Symbol\Glyph\Renderer
Definition:
Renderer.php:12
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:10
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 Wed Sep 3 2025 21:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)