ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FieldRendererFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 public function getRendererInContext(Component\Component $component, array $contexts): Render\AbstractComponentRenderer
29 {
30 if (in_array('DurationFieldInput', $contexts)
31 && in_array('DateTimeFieldInput', $contexts)
32 && in_array('StandardFilterContainerInput', $contexts)) {
34 $this->ui_factory,
35 $this->tpl_factory,
36 $this->lng,
37 $this->js_binding,
38 $this->image_path_resolver,
39 $this->data_factory,
40 $this->help_text_retriever,
41 $this->upload_limit_resolver
42 );
43 }
44 if (in_array('StandardFilterContainerInput', $contexts)) {
45 return new FilterContextRenderer(
46 $this->ui_factory,
47 $this->tpl_factory,
48 $this->lng,
49 $this->js_binding,
50 $this->image_path_resolver,
51 $this->data_factory,
52 $this->help_text_retriever,
53 $this->upload_limit_resolver
54 );
55 }
56 return new Renderer(
57 $this->ui_factory,
58 $this->tpl_factory,
59 $this->lng,
60 $this->js_binding,
61 $this->image_path_resolver,
62 $this->data_factory,
63 $this->help_text_retriever,
64 $this->upload_limit_resolver
65 );
66 }
67}
getRendererInContext(Component\Component $component, array $contexts)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Checkbox.php:21