ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
6
9
11{
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}
An exception for terminatinating execution or to throw for unit testing.
getRendererInContext(Component\Component $component, array $contexts)
A component is the most general form of an entity in the UI.
Definition: Component.php:14