ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
FieldRendererFactory.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2018 Thomas Famula <famula@leifos.de> Extended GPL, see docs/LICENSE */
4
6
9
11{
12 public function getRendererInContext(Component\Component $component, array $contexts)
13 {
14 if (in_array('StandardFilterContainerInput', $contexts)) {
15 return new FilterContextRenderer(
16 $this->ui_factory,
17 $this->tpl_factory,
18 $this->lng,
19 $this->js_binding,
20 $this->refinery
21 );
22 }
23 return new Renderer(
24 $this->ui_factory,
25 $this->tpl_factory,
26 $this->lng,
27 $this->js_binding,
28 $this->refinery
29 );
30 }
31}
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