ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 }
getRendererInContext(Component\Component $component, array $contexts)