ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
Renderer.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 2016 Timon Amstutz <timon.amstutz@ilub.unibe.ch> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component\Legacy
;
6
7
use
ILIAS\UI\Implementation\Render\AbstractComponentRenderer
;
8
use
ILIAS\UI\Renderer
as
RendererInterface
;
9
use
ILIAS\UI\Component
;
10
15
class
Renderer
extends
AbstractComponentRenderer
16
{
20
public
function
render
(
Component
\
Component
$component,
RendererInterface
$default_renderer)
21
{
25
$this->
checkComponent
($component);
26
27
return
$component->getContent();
28
}
29
33
protected
function
getComponentInterfaceName
()
34
{
35
return
[Component\Legacy\Legacy::class];
36
}
37
}
ILIAS\UI\Implementation\Render\AbstractComponentRenderer\checkComponent
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
Definition:
AbstractComponentRenderer.php:241
ILIAS\UI\Component
Renderer
ILIAS\UI\Implementation\Component\Legacy\Renderer
Definition:
Renderer.php:15
AbstractComponentRenderer
ILIAS\UI\Implementation\Component\Legacy\Renderer\getComponentInterfaceName
getComponentInterfaceName()
Definition:
Renderer.php:33
ILIAS\UI\Implementation\Render\ComponentRenderer\render
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
php
ILIAS\UI\Implementation\Component\Legacy
Definition:
Legacy.php:5
ILIAS\UI\Implementation\Render\AbstractComponentRenderer
Base class for all component renderers.
Definition:
AbstractComponentRenderer.php:19
src
UI
Implementation
Component
Legacy
Renderer.php
Generated on Thu Jan 30 2025 19:02:10 for ILIAS by
1.8.13 (using
Doxyfile
)